diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-07-20 12:37:49 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 07:12:57 -0400 |
commit | 5495f195fc5b246d8b0b8a2e0fbbc9c94b3ebf24 (patch) | |
tree | bb0a07a3679dd7aa209e40c5c1ac028cd09969ff | |
parent | 68a9db5f2395cdef98b387bbb816604f6f298056 (diff) |
btrfs: remove fs_info argument from update_dev_stat_item
It can be referenced from the passed transaction handle.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index d82658b01773..fc9d70a16d82 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -7043,9 +7043,9 @@ out: | |||
7043 | } | 7043 | } |
7044 | 7044 | ||
7045 | static int update_dev_stat_item(struct btrfs_trans_handle *trans, | 7045 | static int update_dev_stat_item(struct btrfs_trans_handle *trans, |
7046 | struct btrfs_fs_info *fs_info, | ||
7047 | struct btrfs_device *device) | 7046 | struct btrfs_device *device) |
7048 | { | 7047 | { |
7048 | struct btrfs_fs_info *fs_info = trans->fs_info; | ||
7049 | struct btrfs_root *dev_root = fs_info->dev_root; | 7049 | struct btrfs_root *dev_root = fs_info->dev_root; |
7050 | struct btrfs_path *path; | 7050 | struct btrfs_path *path; |
7051 | struct btrfs_key key; | 7051 | struct btrfs_key key; |
@@ -7138,7 +7138,7 @@ int btrfs_run_dev_stats(struct btrfs_trans_handle *trans, | |||
7138 | */ | 7138 | */ |
7139 | smp_rmb(); | 7139 | smp_rmb(); |
7140 | 7140 | ||
7141 | ret = update_dev_stat_item(trans, fs_info, device); | 7141 | ret = update_dev_stat_item(trans, device); |
7142 | if (!ret) | 7142 | if (!ret) |
7143 | atomic_sub(stats_cnt, &device->dev_stats_ccnt); | 7143 | atomic_sub(stats_cnt, &device->dev_stats_ccnt); |
7144 | } | 7144 | } |