Lines Matching refs:ocfs2_refcount_tree
57 struct ocfs2_refcount_tree *ref_tree;
75 static inline struct ocfs2_refcount_tree *
78 return container_of(ci, struct ocfs2_refcount_tree, rf_ci); in cache_info_to_refcount()
151 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_owner()
159 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_get_super()
166 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_lock()
173 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_unlock()
180 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_lock()
187 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_unlock()
201 static struct ocfs2_refcount_tree *
205 struct ocfs2_refcount_tree *tree = NULL; in ocfs2_find_refcount_tree()
208 tree = rb_entry(n, struct ocfs2_refcount_tree, rf_node); in ocfs2_find_refcount_tree()
223 struct ocfs2_refcount_tree *new) in ocfs2_insert_refcount_tree()
228 struct ocfs2_refcount_tree *tmp; in ocfs2_insert_refcount_tree()
233 tmp = rb_entry(parent, struct ocfs2_refcount_tree, in ocfs2_insert_refcount_tree()
252 static void ocfs2_free_refcount_tree(struct ocfs2_refcount_tree *tree) in ocfs2_free_refcount_tree()
262 struct ocfs2_refcount_tree *tree) in ocfs2_erase_refcount_tree_from_list_no_lock()
270 struct ocfs2_refcount_tree *tree) in ocfs2_erase_refcount_tree_from_list()
279 struct ocfs2_refcount_tree *tree = in ocfs2_kref_remove_refcount_tree()
280 container_of(kref, struct ocfs2_refcount_tree, rf_getcnt); in ocfs2_kref_remove_refcount_tree()
286 ocfs2_refcount_tree_get(struct ocfs2_refcount_tree *tree) in ocfs2_refcount_tree_get()
292 ocfs2_refcount_tree_put(struct ocfs2_refcount_tree *tree) in ocfs2_refcount_tree_put()
297 static inline void ocfs2_init_refcount_tree_ci(struct ocfs2_refcount_tree *new, in ocfs2_init_refcount_tree_ci()
307 struct ocfs2_refcount_tree *new, in ocfs2_init_refcount_tree_lock()
315 static struct ocfs2_refcount_tree*
318 struct ocfs2_refcount_tree *new; in ocfs2_allocate_refcount_tree()
320 new = kzalloc(sizeof(struct ocfs2_refcount_tree), GFP_NOFS); in ocfs2_allocate_refcount_tree()
332 struct ocfs2_refcount_tree **ret_tree) in ocfs2_get_refcount_tree()
335 struct ocfs2_refcount_tree *tree, *new = NULL; in ocfs2_get_refcount_tree()
424 struct ocfs2_refcount_tree *tree, int rw) in __ocfs2_lock_refcount_tree()
453 struct ocfs2_refcount_tree **ret_tree, in ocfs2_lock_refcount_tree()
457 struct ocfs2_refcount_tree *tree = NULL; in ocfs2_lock_refcount_tree()
525 struct ocfs2_refcount_tree *tree, int rw) in ocfs2_unlock_refcount_tree()
539 struct ocfs2_refcount_tree *tree; in ocfs2_purge_refcount_trees()
543 tree = rb_entry(node, struct ocfs2_refcount_tree, rf_node); in ocfs2_purge_refcount_trees()
568 struct ocfs2_refcount_tree *new_tree = NULL, *tree = NULL; in ocfs2_create_refcount_tree()
709 struct ocfs2_refcount_tree *ref_tree; in ocfs2_set_refcount_tree()
773 struct ocfs2_refcount_tree *ref_tree; in ocfs2_remove_refcount_tree()
2303 struct ocfs2_refcount_tree *tree; in ocfs2_decrease_refcount()
2356 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted()
2536 struct ocfs2_refcount_tree *tree; in ocfs2_prepare_refcount_change_for_del()
2539 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del()
3370 if (!ocfs2_refcount_tree(osb)) { in ocfs2_replace_cow()
3424 struct ocfs2_refcount_tree *ref_tree; in ocfs2_refcount_cow_hunk()
3630 struct ocfs2_refcount_tree *ref_tree, in ocfs2_refcount_cow_xattr()
3808 struct ocfs2_refcount_tree *ref_tree; in ocfs2_attach_refcount_tree()
4140 struct ocfs2_refcount_tree *ref_tree; in ocfs2_create_reflink_node()
4267 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink()
4437 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink_ioctl()
4523 struct ocfs2_refcount_tree *ref_tree; in ocfs2_reflink_remap_extent()
4843 if (!ocfs2_refcount_tree(osb)) in ocfs2_reflink_remap_range()