btrfs: Remove block_rsv parameter from btrfs_drop_snapshot
It's no longer used following 30d40577e3
("btrfs: reloc: Also queue
orphan reloc tree for cleanup to avoid BUG_ON()"), so just remove it.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:

committed by
David Sterba

parent
63f018be57
commit
0078a9f941
@@ -2276,7 +2276,7 @@ static int clean_dirty_subvols(struct reloc_control *rc)
|
||||
root->reloc_root = NULL;
|
||||
if (reloc_root) {
|
||||
|
||||
ret2 = btrfs_drop_snapshot(reloc_root, NULL, 0, 1);
|
||||
ret2 = btrfs_drop_snapshot(reloc_root, 0, 1);
|
||||
if (ret2 < 0 && !ret)
|
||||
ret = ret2;
|
||||
}
|
||||
@@ -2289,7 +2289,7 @@ static int clean_dirty_subvols(struct reloc_control *rc)
|
||||
btrfs_put_root(root);
|
||||
} else {
|
||||
/* Orphan reloc tree, just clean it up */
|
||||
ret2 = btrfs_drop_snapshot(root, NULL, 0, 1);
|
||||
ret2 = btrfs_drop_snapshot(root, 0, 1);
|
||||
if (ret2 < 0 && !ret)
|
||||
ret = ret2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user