OSDN Git Service

btrfs: push grab_fs_root into read_fs_root
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:45 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:30 +0000 (17:01 +0100)
commit9f583209f20a6eb0d959416010d07582a5014098
treed3313e11fc57ff545b2db4453ae27699efcf0c8f
parent932fd26df8125a5b14438563c4d3e33f59ba80f7
btrfs: push grab_fs_root into read_fs_root

All of relocation uses read_fs_root to lookup fs roots, so push the
btrfs_grab_fs_root() up into that helper and remove the individual
calls.

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/relocation.c