Commit 62088ca7 authored by Lu Fengqi's avatar Lu Fengqi Committed by David Sterba

btrfs: qgroup: Drop fs_info parameter from qgroup_rescan_leaf

It can be fetched from the transaction handle.
Signed-off-by: default avatarLu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a9377422
...@@ -2640,10 +2640,10 @@ static bool is_last_leaf(struct btrfs_path *path) ...@@ -2640,10 +2640,10 @@ static bool is_last_leaf(struct btrfs_path *path)
* returns < 0 on error, 0 when more leafs are to be scanned. * returns < 0 on error, 0 when more leafs are to be scanned.
* returns 1 when done. * returns 1 when done.
*/ */
static int static int qgroup_rescan_leaf(struct btrfs_trans_handle *trans,
qgroup_rescan_leaf(struct btrfs_fs_info *fs_info, struct btrfs_path *path, struct btrfs_path *path)
struct btrfs_trans_handle *trans)
{ {
struct btrfs_fs_info *fs_info = trans->fs_info;
struct btrfs_key found; struct btrfs_key found;
struct extent_buffer *scratch_leaf = NULL; struct extent_buffer *scratch_leaf = NULL;
struct ulist *roots = NULL; struct ulist *roots = NULL;
...@@ -2758,7 +2758,7 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work) ...@@ -2758,7 +2758,7 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work)
if (!test_bit(BTRFS_FS_QUOTA_ENABLED, &fs_info->flags)) { if (!test_bit(BTRFS_FS_QUOTA_ENABLED, &fs_info->flags)) {
err = -EINTR; err = -EINTR;
} else { } else {
err = qgroup_rescan_leaf(fs_info, path, trans); err = qgroup_rescan_leaf(trans, path);
} }
if (err > 0) if (err > 0)
btrfs_commit_transaction(trans); btrfs_commit_transaction(trans);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment