diff options
| author | Josef Bacik <josef@toxicpanda.com> | 2022-02-18 14:56:12 -0500 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2022-03-14 13:13:52 +0100 |
| commit | 7eefae6bb1ddeba1df02acd5c6bb6b7c8e0f34d1 (patch) | |
| tree | 24a4e070bef416f3433c12578189c0e54ecca5d1 /fs/btrfs/disk-io.c | |
| parent | btrfs: pass btrfs_fs_info for deleting snapshots and cleaner (diff) | |
| download | linux-7eefae6bb1ddeba1df02acd5c6bb6b7c8e0f34d1.tar.gz linux-7eefae6bb1ddeba1df02acd5c6bb6b7c8e0f34d1.zip | |
btrfs: pass btrfs_fs_info to btrfs_recover_relocation
We don't need a root here, we just need the btrfs_fs_info, we can just
get the specific roots we need from fs_info.
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>
Diffstat (limited to 'fs/btrfs/disk-io.c')
| -rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 183baeffd9c9..6a0b4dbd70e9 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3379,7 +3379,7 @@ int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info) up_read(&fs_info->cleanup_work_sem); mutex_lock(&fs_info->cleaner_mutex); - ret = btrfs_recover_relocation(fs_info->tree_root); + ret = btrfs_recover_relocation(fs_info); mutex_unlock(&fs_info->cleaner_mutex); if (ret < 0) { btrfs_warn(fs_info, "failed to recover relocation: %d", ret); |
