summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 16:51:44 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:43 +0200
commit2b584c688bb53d482220712e2f5810a155ec1b74 (patch)
treeca9f3a08b501ae410d2062a33734d7e8141f114c /fs/btrfs/transaction.c
parent196c9d8de8389643318c22259fd5bcfccbc7fb91 (diff)
downloadlinux-stable-2b584c688bb53d482220712e2f5810a155ec1b74.tar.gz
linux-stable-2b584c688bb53d482220712e2f5810a155ec1b74.tar.bz2
linux-stable-2b584c688bb53d482220712e2f5810a155ec1b74.zip
btrfs: get fs_info from trans in btrfs_run_dev_replace
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 1e3d8d9b0ed5..722ebdc02453 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -1097,7 +1097,7 @@ static noinline int commit_cowonly_roots(struct btrfs_trans_handle *trans)
ret = btrfs_run_dev_stats(trans);
if (ret)
return ret;
- ret = btrfs_run_dev_replace(trans, fs_info);
+ ret = btrfs_run_dev_replace(trans);
if (ret)
return ret;
ret = btrfs_run_qgroups(trans);