Home
last modified time | relevance | path

Searched refs:ref_tree (Results 1 – 11 of 11) sorted by relevance

/linux/fs/ocfs2/
H A Dmove_extents.c203 struct ocfs2_refcount_tree *ref_tree = NULL; in ocfs2_defrag_extent() local
213 &ref_tree, NULL); in ocfs2_defrag_extent()
352 if (ref_tree) in ocfs2_defrag_extent()
353 ocfs2_unlock_refcount_tree(osb, ref_tree, 1); in ocfs2_defrag_extent()
575 struct ocfs2_refcount_tree *ref_tree = NULL; in ocfs2_move_extent() local
587 &ref_tree, NULL); in ocfs2_move_extent()
721 if (ref_tree) in ocfs2_move_extent()
722 ocfs2_unlock_refcount_tree(osb, ref_tree, 1); in ocfs2_move_extent()
H A Ddlmglue.h179 int ocfs2_refcount_lock(struct ocfs2_refcount_tree *ref_tree, int ex);
180 void ocfs2_refcount_unlock(struct ocfs2_refcount_tree *ref_tree, int ex);
H A Drefcounttree.h73 struct ocfs2_refcount_tree *ref_tree,
H A Dxattr.c293 struct ocfs2_refcount_tree **ref_tree,
2566 struct ocfs2_refcount_tree *ref_tree = NULL; in ocfs2_xattr_remove() local
2581 1, &ref_tree, &ref_root_bh); in ocfs2_xattr_remove()
2586 ref_ci = &ref_tree->rf_ci; in ocfs2_xattr_remove()
2635 if (ref_tree) in ocfs2_xattr_remove()
2636 ocfs2_unlock_refcount_tree(OCFS2_SB(inode->i_sb), ref_tree, 1); in ocfs2_xattr_remove()
3542 struct ocfs2_refcount_tree *ref_tree = NULL; in ocfs2_xattr_set() local
3614 &xis, &xbs, &ref_tree, in ocfs2_xattr_set()
3665 if (ref_tree) in ocfs2_xattr_set()
3666 ocfs2_unlock_refcount_tree(osb, ref_tree, 1); in ocfs2_xattr_set()
[all …]
H A Dalloc.c5717 struct ocfs2_refcount_tree *ref_tree = NULL; in ocfs2_remove_btree_range() local
5724 &ref_tree, NULL); in ocfs2_remove_btree_range()
5812 if (ref_tree) in ocfs2_remove_btree_range()
5813 ocfs2_unlock_refcount_tree(osb, ref_tree, 1); in ocfs2_remove_btree_range()
7246 struct ocfs2_refcount_tree *ref_tree = NULL; in ocfs2_commit_truncate() local
7364 if ((flags & OCFS2_EXT_REFCOUNTED) && trunc_len && !ref_tree) { in ocfs2_commit_truncate()
7366 &ref_tree, NULL); in ocfs2_commit_truncate()
7390 if (ref_tree) in ocfs2_commit_truncate()
7391 ocfs2_unlock_refcount_tree(osb, ref_tree, 1); in ocfs2_commit_truncate()
H A Ddlmglue.c4272 int ocfs2_refcount_lock(struct ocfs2_refcount_tree *ref_tree, int ex) in ocfs2_refcount_lock() argument
4276 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; in ocfs2_refcount_lock()
4293 void ocfs2_refcount_unlock(struct ocfs2_refcount_tree *ref_tree, int ex) in ocfs2_refcount_unlock() argument
4296 struct ocfs2_lock_res *lockres = &ref_tree->rf_lockres; in ocfs2_refcount_unlock()
/linux/fs/btrfs/
H A Ddelayed-ref.c376 rb_erase_cached(&ref->ref_node, &head->ref_tree); in drop_delayed_ref()
441 if (RB_EMPTY_ROOT(&head->ref_tree.rb_root)) in btrfs_merge_delayed_refs()
450 for (node = rb_first_cached(&head->ref_tree); node; in btrfs_merge_delayed_refs()
556 if (RB_EMPTY_ROOT(&head->ref_tree.rb_root)) in btrfs_select_delayed_ref()
569 ref = rb_entry(rb_first_cached(&head->ref_tree), in btrfs_select_delayed_ref()
591 exist = tree_insert(&href->ref_tree, ref); in insert_delayed_ref()
776 head_ref->ref_tree = RB_ROOT_CACHED; in init_delayed_ref_head()
1225 node = head->ref_tree.rb_root.rb_node; in btrfs_find_delayed_tree_ref()
1270 while ((n = rb_first_cached(&head->ref_tree)) != NULL) { in btrfs_destroy_delayed_refs()
H A Ddelayed-ref.h138 struct rb_root_cached ref_tree; member
H A Dextent-tree.c1883 if (!RB_EMPTY_ROOT(&head->ref_tree.rb_root) || head->extent_op) { in cleanup_ref_head()
1935 rb_erase_cached(&ref->ref_node, &locked_ref->ref_tree); in btrfs_run_delayed_refs_for_head()
2261 for (node = rb_first_cached(&head->ref_tree); node; in check_delayed_ref()
3402 if (!RB_EMPTY_ROOT(&head->ref_tree.rb_root)) in check_ref_cleanup()
H A Dbackref.c898 for (n = rb_first_cached(&head->ref_tree); n; n = rb_next(n)) { in add_delayed_refs()
/linux/fs/btrfs/tests/
H A Ddelayed-refs-tests.c63 rb_erase_cached(&node->ref_node, &head->ref_tree); in delete_delayed_ref_node()