diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-12-13 14:39:34 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 09:50:50 -0500 |
commit | fef394f75bc17599c17287fbc437d4fb07a98583 (patch) | |
tree | 1642c0a345224f0e9e49682f51b0a51ada221521 /fs/btrfs/delayed-ref.c | |
parent | 694a0dee9c2d36a552f31a1b104733ed3f90f46d (diff) |
btrfs: drop unused extent_op arg from btrfs_add_delayed_data_ref
btrfs_add_delayed_data_ref is always called with a NULL extent_op,
so let's drop the argument.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@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 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c index ef724a5fc30e..c66f487b76a7 100644 --- a/fs/btrfs/delayed-ref.c +++ b/fs/btrfs/delayed-ref.c | |||
@@ -829,15 +829,13 @@ int btrfs_add_delayed_data_ref(struct btrfs_fs_info *fs_info, | |||
829 | struct btrfs_trans_handle *trans, | 829 | struct btrfs_trans_handle *trans, |
830 | u64 bytenr, u64 num_bytes, | 830 | u64 bytenr, u64 num_bytes, |
831 | u64 parent, u64 ref_root, | 831 | u64 parent, u64 ref_root, |
832 | u64 owner, u64 offset, u64 reserved, int action, | 832 | u64 owner, u64 offset, u64 reserved, int action) |
833 | struct btrfs_delayed_extent_op *extent_op) | ||
834 | { | 833 | { |
835 | struct btrfs_delayed_data_ref *ref; | 834 | struct btrfs_delayed_data_ref *ref; |
836 | struct btrfs_delayed_ref_head *head_ref; | 835 | struct btrfs_delayed_ref_head *head_ref; |
837 | struct btrfs_delayed_ref_root *delayed_refs; | 836 | struct btrfs_delayed_ref_root *delayed_refs; |
838 | struct btrfs_qgroup_extent_record *record = NULL; | 837 | struct btrfs_qgroup_extent_record *record = NULL; |
839 | 838 | ||
840 | BUG_ON(extent_op && !extent_op->is_data); | ||
841 | ref = kmem_cache_alloc(btrfs_delayed_data_ref_cachep, GFP_NOFS); | 839 | ref = kmem_cache_alloc(btrfs_delayed_data_ref_cachep, GFP_NOFS); |
842 | if (!ref) | 840 | if (!ref) |
843 | return -ENOMEM; | 841 | return -ENOMEM; |
@@ -859,7 +857,7 @@ int btrfs_add_delayed_data_ref(struct btrfs_fs_info *fs_info, | |||
859 | } | 857 | } |
860 | } | 858 | } |
861 | 859 | ||
862 | head_ref->extent_op = extent_op; | 860 | head_ref->extent_op = NULL; |
863 | 861 | ||
864 | delayed_refs = &trans->transaction->delayed_refs; | 862 | delayed_refs = &trans->transaction->delayed_refs; |
865 | spin_lock(&delayed_refs->lock); | 863 | spin_lock(&delayed_refs->lock); |