summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 16:50:38 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:43 +0200
commit196c9d8de8389643318c22259fd5bcfccbc7fb91 (patch)
treef565d8c24b54eeea82f37ad7df99ca62e5d367d5 /fs/btrfs/transaction.c
parent5c466629e27a346e056f5d1d0fff13f562690bbb (diff)
downloadlinux-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/transaction.c')
-rw-r--r--fs/btrfs/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index cc326d964567..1e3d8d9b0ed5 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -1094,7 +1094,7 @@ static noinline int commit_cowonly_roots(struct btrfs_trans_handle *trans)
if (ret)
return ret;
- ret = btrfs_run_dev_stats(trans, fs_info);
+ ret = btrfs_run_dev_stats(trans);
if (ret)
return ret;
ret = btrfs_run_dev_replace(trans, fs_info);