|
@@ -829,15 +829,13 @@ int btrfs_add_delayed_data_ref(struct btrfs_fs_info *fs_info,
|
|
struct btrfs_trans_handle *trans,
|
|
struct btrfs_trans_handle *trans,
|
|
u64 bytenr, u64 num_bytes,
|
|
u64 bytenr, u64 num_bytes,
|
|
u64 parent, u64 ref_root,
|
|
u64 parent, u64 ref_root,
|
|
- u64 owner, u64 offset, u64 reserved, int action,
|
|
|
|
- struct btrfs_delayed_extent_op *extent_op)
|
|
|
|
|
|
+ u64 owner, u64 offset, u64 reserved, int action)
|
|
{
|
|
{
|
|
struct btrfs_delayed_data_ref *ref;
|
|
struct btrfs_delayed_data_ref *ref;
|
|
struct btrfs_delayed_ref_head *head_ref;
|
|
struct btrfs_delayed_ref_head *head_ref;
|
|
struct btrfs_delayed_ref_root *delayed_refs;
|
|
struct btrfs_delayed_ref_root *delayed_refs;
|
|
struct btrfs_qgroup_extent_record *record = NULL;
|
|
struct btrfs_qgroup_extent_record *record = NULL;
|
|
|
|
|
|
- BUG_ON(extent_op && !extent_op->is_data);
|
|
|
|
ref = kmem_cache_alloc(btrfs_delayed_data_ref_cachep, GFP_NOFS);
|
|
ref = kmem_cache_alloc(btrfs_delayed_data_ref_cachep, GFP_NOFS);
|
|
if (!ref)
|
|
if (!ref)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
@@ -859,7 +857,7 @@ int btrfs_add_delayed_data_ref(struct btrfs_fs_info *fs_info,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- head_ref->extent_op = extent_op;
|
|
|
|
|
|
+ head_ref->extent_op = NULL;
|
|
|
|
|
|
delayed_refs = &trans->transaction->delayed_refs;
|
|
delayed_refs = &trans->transaction->delayed_refs;
|
|
spin_lock(&delayed_refs->lock);
|
|
spin_lock(&delayed_refs->lock);
|