diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2018-06-20 08:48:54 -0400 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2018-08-06 07:12:34 -0400 |
| commit | 88a979c615d0d9da19498b3b7692e725fb2f387e (patch) | |
| tree | c112a231af84f394ab46e8f07620606634e7779b /fs/btrfs/delayed-ref.c | |
| parent | 44e1c47d5c3f31a9f5c883834eb9e29d0b165ea8 (diff) | |
btrfs: Remove fs_info from btrfs_add_delayed_data_ref
This function is always called with a valid transaction handle from
where fs_info can be referenced. No functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delayed-ref.c')
| -rw-r--r-- | fs/btrfs/delayed-ref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c index 82ac1273c65f..6eb00eb65d76 100644 --- a/fs/btrfs/delayed-ref.c +++ b/fs/btrfs/delayed-ref.c | |||
| @@ -791,13 +791,13 @@ free_ref: | |||
| 791 | /* | 791 | /* |
| 792 | * add a delayed data ref. it's similar to btrfs_add_delayed_tree_ref. | 792 | * add a delayed data ref. it's similar to btrfs_add_delayed_tree_ref. |
| 793 | */ | 793 | */ |
| 794 | int btrfs_add_delayed_data_ref(struct btrfs_fs_info *fs_info, | 794 | int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans, |
| 795 | struct btrfs_trans_handle *trans, | ||
| 796 | u64 bytenr, u64 num_bytes, | 795 | u64 bytenr, u64 num_bytes, |
| 797 | u64 parent, u64 ref_root, | 796 | u64 parent, u64 ref_root, |
| 798 | u64 owner, u64 offset, u64 reserved, int action, | 797 | u64 owner, u64 offset, u64 reserved, int action, |
| 799 | int *old_ref_mod, int *new_ref_mod) | 798 | int *old_ref_mod, int *new_ref_mod) |
| 800 | { | 799 | { |
| 800 | struct btrfs_fs_info *fs_info = trans->fs_info; | ||
| 801 | struct btrfs_delayed_data_ref *ref; | 801 | struct btrfs_delayed_data_ref *ref; |
| 802 | struct btrfs_delayed_ref_head *head_ref; | 802 | struct btrfs_delayed_ref_head *head_ref; |
| 803 | struct btrfs_delayed_ref_root *delayed_refs; | 803 | struct btrfs_delayed_ref_root *delayed_refs; |
