diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 16:50:38 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:43 +0200 |
commit | 196c9d8de8389643318c22259fd5bcfccbc7fb91 (patch) | |
tree | f565d8c24b54eeea82f37ad7df99ca62e5d367d5 /fs/btrfs/volumes.c | |
parent | 5c466629e27a346e056f5d1d0fff13f562690bbb (diff) | |
download | linux-stable-196c9d8de8389643318c22259fd5bcfccbc7fb91.tar.gz linux-stable-196c9d8de8389643318c22259fd5bcfccbc7fb91.tar.bz2 linux-stable-196c9d8de8389643318c22259fd5bcfccbc7fb91.zip |
btrfs: get fs_info from trans in btrfs_run_dev_stats
We can read fs_info from the transaction and can drop it from the
parameters.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-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 c728f0f604a8..5ee24876fac3 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -7404,9 +7404,9 @@ out: /* * called from commit_transaction. Writes all changed device stats to disk. */ -int btrfs_run_dev_stats(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info) +int btrfs_run_dev_stats(struct btrfs_trans_handle *trans) { + struct btrfs_fs_info *fs_info = trans->fs_info; struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; struct btrfs_device *device; int stats_cnt; |