diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-04-19 11:06:37 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:07:20 +0200 |
commit | 1acda0c28979ef4247d19bb32f65f0547a1bbf33 (patch) | |
tree | e608d10e94c4ebb421811fa908aec9930699335b /fs/btrfs | |
parent | 40012f96b6765e588d8ffd7508d492339f2b9212 (diff) | |
download | linux-stable-1acda0c28979ef4247d19bb32f65f0547a1bbf33.tar.gz linux-stable-1acda0c28979ef4247d19bb32f65f0547a1bbf33.tar.bz2 linux-stable-1acda0c28979ef4247d19bb32f65f0547a1bbf33.zip |
btrfs: Drop add_delayed_ref_head fs_info parameter
It's provided by the transaction handle.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/delayed-ref.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c index 915825b27ffc..d2777613cd22 100644 --- a/fs/btrfs/delayed-ref.c +++ b/fs/btrfs/delayed-ref.c @@ -532,8 +532,7 @@ update_existing_head_ref(struct btrfs_delayed_ref_root *delayed_refs, * overall modification count. */ static noinline struct btrfs_delayed_ref_head * -add_delayed_ref_head(struct btrfs_fs_info *fs_info, - struct btrfs_trans_handle *trans, +add_delayed_ref_head(struct btrfs_trans_handle *trans, struct btrfs_delayed_ref_head *head_ref, struct btrfs_qgroup_extent_record *qrecord, u64 bytenr, u64 num_bytes, u64 ref_root, u64 reserved, @@ -606,14 +605,14 @@ add_delayed_ref_head(struct btrfs_fs_info *fs_info, qrecord->num_bytes = num_bytes; qrecord->old_roots = NULL; - if(btrfs_qgroup_trace_extent_nolock(fs_info, + if(btrfs_qgroup_trace_extent_nolock(trans->fs_info, delayed_refs, qrecord)) kfree(qrecord); else qrecord_inserted = 1; } - trace_add_delayed_ref_head(fs_info, head_ref, action); + trace_add_delayed_ref_head(trans->fs_info, head_ref, action); existing = htree_insert(&delayed_refs->href_root, &head_ref->href_node); @@ -799,8 +798,8 @@ int btrfs_add_delayed_tree_ref(struct btrfs_fs_info *fs_info, * insert both the head node and the new ref without dropping * the spin lock */ - head_ref = add_delayed_ref_head(fs_info, trans, head_ref, record, - bytenr, num_bytes, 0, 0, action, 0, + head_ref = add_delayed_ref_head(trans, head_ref, record, bytenr, + num_bytes, 0, 0, action, 0, is_system, &qrecord_inserted, old_ref_mod, new_ref_mod); @@ -867,8 +866,8 @@ int btrfs_add_delayed_data_ref(struct btrfs_fs_info *fs_info, * insert both the head node and the new ref without dropping * the spin lock */ - head_ref = add_delayed_ref_head(fs_info, trans, head_ref, record, - bytenr, num_bytes, ref_root, reserved, + head_ref = add_delayed_ref_head(trans, head_ref, record, bytenr, + num_bytes, ref_root, reserved, action, 1, 0, &qrecord_inserted, old_ref_mod, new_ref_mod); @@ -904,9 +903,9 @@ int btrfs_add_delayed_extent_op(struct btrfs_fs_info *fs_info, * in ref count changes, hence it's safe to pass false/0 for is_system * argument */ - add_delayed_ref_head(fs_info, trans, head_ref, NULL, bytenr, - num_bytes, 0, 0, BTRFS_UPDATE_DELAYED_HEAD, - extent_op->is_data, 0, NULL, NULL, NULL); + add_delayed_ref_head(trans, head_ref, NULL, bytenr, num_bytes, 0, 0, + BTRFS_UPDATE_DELAYED_HEAD, extent_op->is_data, + 0, NULL, NULL, NULL); spin_unlock(&delayed_refs->lock); return 0; |