Home
last modified time | relevance | path

Searched refs:delayed_refs (Results 1 – 10 of 10) sorted by relevance

/fs/btrfs/
Ddelayed-ref.c56 atomic_read(&trans->transaction->delayed_refs.num_entries); in btrfs_should_throttle_delayed_refs()
394 int btrfs_delayed_ref_lock(struct btrfs_delayed_ref_root *delayed_refs, in btrfs_delayed_ref_lock() argument
397 lockdep_assert_held(&delayed_refs->lock); in btrfs_delayed_ref_lock()
402 spin_unlock(&delayed_refs->lock); in btrfs_delayed_ref_lock()
405 spin_lock(&delayed_refs->lock); in btrfs_delayed_ref_lock()
416 struct btrfs_delayed_ref_root *delayed_refs, in drop_delayed_ref() argument
427 atomic_dec(&delayed_refs->num_entries); in drop_delayed_ref()
431 struct btrfs_delayed_ref_root *delayed_refs, in merge_ref() argument
460 drop_delayed_ref(trans, delayed_refs, head, next); in merge_ref()
463 drop_delayed_ref(trans, delayed_refs, head, ref); in merge_ref()
[all …]
Dtransaction.h85 struct btrfs_delayed_ref_root delayed_refs; member
174 struct btrfs_delayed_ref_root *delayed_refs; in btrfs_set_skip_qgroup() local
176 delayed_refs = &trans->transaction->delayed_refs; in btrfs_set_skip_qgroup()
177 WARN_ON(delayed_refs->qgroup_to_skip); in btrfs_set_skip_qgroup()
178 delayed_refs->qgroup_to_skip = qgroupid; in btrfs_set_skip_qgroup()
183 struct btrfs_delayed_ref_root *delayed_refs; in btrfs_clear_skip_qgroup() local
185 delayed_refs = &trans->transaction->delayed_refs; in btrfs_clear_skip_qgroup()
186 WARN_ON(!delayed_refs->qgroup_to_skip); in btrfs_clear_skip_qgroup()
187 delayed_refs->qgroup_to_skip = 0; in btrfs_clear_skip_qgroup()
Dextent-tree.c156 struct btrfs_delayed_ref_root *delayed_refs; in btrfs_lookup_extent_info() local
237 delayed_refs = &trans->transaction->delayed_refs; in btrfs_lookup_extent_info()
238 spin_lock(&delayed_refs->lock); in btrfs_lookup_extent_info()
239 head = btrfs_find_delayed_ref_head(delayed_refs, bytenr); in btrfs_lookup_extent_info()
243 spin_unlock(&delayed_refs->lock); in btrfs_lookup_extent_info()
266 spin_unlock(&delayed_refs->lock); in btrfs_lookup_extent_info()
1762 static void unselect_delayed_ref_head(struct btrfs_delayed_ref_root *delayed_refs, in unselect_delayed_ref_head() argument
1765 spin_lock(&delayed_refs->lock); in unselect_delayed_ref_head()
1767 delayed_refs->num_heads_ready++; in unselect_delayed_ref_head()
1768 spin_unlock(&delayed_refs->lock); in unselect_delayed_ref_head()
[all …]
Ddelayed-ref.h347 struct btrfs_delayed_ref_root *delayed_refs,
351 btrfs_find_delayed_ref_head(struct btrfs_delayed_ref_root *delayed_refs,
353 int btrfs_delayed_ref_lock(struct btrfs_delayed_ref_root *delayed_refs,
359 void btrfs_delete_ref_head(struct btrfs_delayed_ref_root *delayed_refs,
363 struct btrfs_delayed_ref_root *delayed_refs);
Dtransaction.c53 &transaction->delayed_refs.href_root.rb_root)); in btrfs_put_transaction()
55 &transaction->delayed_refs.dirty_extent_root)); in btrfs_put_transaction()
56 if (transaction->delayed_refs.pending_csums) in btrfs_put_transaction()
59 transaction->delayed_refs.pending_csums); in btrfs_put_transaction()
238 memset(&cur_trans->delayed_refs, 0, sizeof(cur_trans->delayed_refs)); in join_transaction()
240 cur_trans->delayed_refs.href_root = RB_ROOT_CACHED; in join_transaction()
241 cur_trans->delayed_refs.dirty_extent_root = RB_ROOT; in join_transaction()
242 atomic_set(&cur_trans->delayed_refs.num_entries, 0); in join_transaction()
255 spin_lock_init(&cur_trans->delayed_refs.lock); in join_transaction()
807 cur_trans->delayed_refs.flushing) in btrfs_should_end_transaction()
[all …]
Dqgroup.c1702 struct btrfs_delayed_ref_root *delayed_refs, in btrfs_qgroup_trace_extent_nolock() argument
1705 struct rb_node **p = &delayed_refs->dirty_extent_root.rb_node; in btrfs_qgroup_trace_extent_nolock()
1710 lockdep_assert_held(&delayed_refs->lock); in btrfs_qgroup_trace_extent_nolock()
1732 rb_insert_color(&record->node, &delayed_refs->dirty_extent_root); in btrfs_qgroup_trace_extent_nolock()
1768 struct btrfs_delayed_ref_root *delayed_refs; in btrfs_qgroup_trace_extent() local
1778 delayed_refs = &trans->transaction->delayed_refs; in btrfs_qgroup_trace_extent()
1783 spin_lock(&delayed_refs->lock); in btrfs_qgroup_trace_extent()
1784 ret = btrfs_qgroup_trace_extent_nolock(fs_info, delayed_refs, record); in btrfs_qgroup_trace_extent()
1785 spin_unlock(&delayed_refs->lock); in btrfs_qgroup_trace_extent()
2668 struct btrfs_delayed_ref_root *delayed_refs; in btrfs_qgroup_account_extents() local
[all …]
Dbackref.c1205 struct btrfs_delayed_ref_root *delayed_refs = NULL; local
1264 delayed_refs = &trans->transaction->delayed_refs;
1265 spin_lock(&delayed_refs->lock);
1266 head = btrfs_find_delayed_ref_head(delayed_refs, bytenr);
1270 spin_unlock(&delayed_refs->lock);
1283 spin_unlock(&delayed_refs->lock);
1290 spin_unlock(&delayed_refs->lock);
Ddisk-io.c4332 struct btrfs_delayed_ref_root *delayed_refs; in btrfs_destroy_delayed_refs() local
4336 delayed_refs = &trans->delayed_refs; in btrfs_destroy_delayed_refs()
4338 spin_lock(&delayed_refs->lock); in btrfs_destroy_delayed_refs()
4339 if (atomic_read(&delayed_refs->num_entries) == 0) { in btrfs_destroy_delayed_refs()
4340 spin_unlock(&delayed_refs->lock); in btrfs_destroy_delayed_refs()
4345 while ((node = rb_first_cached(&delayed_refs->href_root)) != NULL) { in btrfs_destroy_delayed_refs()
4352 if (btrfs_delayed_ref_lock(delayed_refs, head)) in btrfs_destroy_delayed_refs()
4364 atomic_dec(&delayed_refs->num_entries); in btrfs_destroy_delayed_refs()
4370 btrfs_delete_ref_head(delayed_refs, head); in btrfs_destroy_delayed_refs()
4372 spin_unlock(&delayed_refs->lock); in btrfs_destroy_delayed_refs()
[all …]
Dqgroup.h266 struct btrfs_delayed_ref_root *delayed_refs,
Dctree.h2408 struct btrfs_delayed_ref_root *delayed_refs,