mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
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>
This commit is contained in:
parent
68a9db5f23
commit
5495f195fc
1 changed files with 2 additions and 2 deletions
|
@ -7043,9 +7043,9 @@ int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int update_dev_stat_item(struct btrfs_trans_handle *trans,
|
static int update_dev_stat_item(struct btrfs_trans_handle *trans,
|
||||||
struct btrfs_fs_info *fs_info,
|
|
||||||
struct btrfs_device *device)
|
struct btrfs_device *device)
|
||||||
{
|
{
|
||||||
|
struct btrfs_fs_info *fs_info = trans->fs_info;
|
||||||
struct btrfs_root *dev_root = fs_info->dev_root;
|
struct btrfs_root *dev_root = fs_info->dev_root;
|
||||||
struct btrfs_path *path;
|
struct btrfs_path *path;
|
||||||
struct btrfs_key key;
|
struct btrfs_key key;
|
||||||
|
@ -7138,7 +7138,7 @@ int btrfs_run_dev_stats(struct btrfs_trans_handle *trans,
|
||||||
*/
|
*/
|
||||||
smp_rmb();
|
smp_rmb();
|
||||||
|
|
||||||
ret = update_dev_stat_item(trans, fs_info, device);
|
ret = update_dev_stat_item(trans, device);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
atomic_sub(stats_cnt, &device->dev_stats_ccnt);
|
atomic_sub(stats_cnt, &device->dev_stats_ccnt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue