Merge tag 'gfs2-4.20.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2...
[muen/linux.git] / fs / gfs2 / bmap.c
index 84544a4f012d744dda1a22d74c2482e9ff000f61..a683d9b27d76033a191b72f81528a7b255de4f08 100644 (file)
@@ -1566,7 +1566,7 @@ more_rgrps:
                        continue;
                }
                if (bstart) {
-                       __gfs2_free_blocks(ip, bstart, (u32)blen, meta);
+                       __gfs2_free_blocks(ip, rgd, bstart, (u32)blen, meta);
                        (*btotal) += blen;
                        gfs2_add_inode_blocks(&ip->i_inode, -blen);
                }
@@ -1574,7 +1574,7 @@ more_rgrps:
                blen = 1;
        }
        if (bstart) {
-               __gfs2_free_blocks(ip, bstart, (u32)blen, meta);
+               __gfs2_free_blocks(ip, rgd, bstart, (u32)blen, meta);
                (*btotal) += blen;
                gfs2_add_inode_blocks(&ip->i_inode, -blen);
        }