btrfs: call functions that overwrite their root parameter with fs_info
There are 11 functions that accept a root parameter and immediately overwrite it. We can pass those an fs_info pointer instead. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
515bdc4790
commit
5b4aacefb8
@@ -797,9 +797,9 @@ static noinline int replay_one_extent(struct btrfs_trans_handle *trans,
|
||||
list);
|
||||
if (!ret)
|
||||
ret = btrfs_del_csums(trans,
|
||||
root->fs_info->csum_root,
|
||||
sums->bytenr,
|
||||
sums->len);
|
||||
root->fs_info,
|
||||
sums->bytenr,
|
||||
sums->len);
|
||||
if (!ret)
|
||||
ret = btrfs_csum_file_blocks(trans,
|
||||
root->fs_info->csum_root,
|
||||
|
||||
Reference in New Issue
Block a user