gfs2: Pass resource group to rgblk_free
Function rgblk_free can only deal with one resource group at a time, so pass that resource group is as a parameter. Several of the callers already have the resource group at hand, so we only need additional lookup code in a few places. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com> Reviewed-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:

committato da
Bob Peterson

parent
c3abc29e54
commit
0ddeded4ae
@@ -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);
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user