btrfs: pass btrfs_fs_info for deleting snapshots and cleaner
authorJosef Bacik <josef@toxicpanda.com>
Fri, 18 Feb 2022 19:56:11 +0000 (14:56 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 15:20:05 +0000 (16:20 +0100)
commit012b810918ff184d3b7b1f78992945fe0fb60d1f
tree4b14ce0b181f50e8149d3f64007e7b486ecf4064
parent857251b04a906977e67f2c6a9f231f1aafaabfb7
btrfs: pass btrfs_fs_info for deleting snapshots and cleaner

We're passing a root around here, but we only really need the fs_info,
so fix up btrfs_clean_one_deleted_snapshot() to take an fs_info instead,
and then fix up all the callers appropriately.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h