diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-21 10:40:19 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-06 10:06:57 -0500 |
commit | 5b4aacefb8fbfc996e68b9b083d30f8bc0972449 (patch) | |
tree | cd4f1669a5bf9f8f2896c27f4b0d9d51e8a68e43 /fs/btrfs/tree-log.c | |
parent | 515bdc479097ec9d5f389202842345af3162f71c (diff) |
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>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index e0478f51cf16..72bd398f6c66 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -797,9 +797,9 @@ static noinline int replay_one_extent(struct btrfs_trans_handle *trans, | |||
797 | list); | 797 | list); |
798 | if (!ret) | 798 | if (!ret) |
799 | ret = btrfs_del_csums(trans, | 799 | ret = btrfs_del_csums(trans, |
800 | root->fs_info->csum_root, | 800 | root->fs_info, |
801 | sums->bytenr, | 801 | sums->bytenr, |
802 | sums->len); | 802 | sums->len); |
803 | if (!ret) | 803 | if (!ret) |
804 | ret = btrfs_csum_file_blocks(trans, | 804 | ret = btrfs_csum_file_blocks(trans, |
805 | root->fs_info->csum_root, | 805 | root->fs_info->csum_root, |