Lines Matching refs:ocfs2_refcount_tree

56 	struct ocfs2_refcount_tree *ref_tree;
74 static inline struct ocfs2_refcount_tree *
77 return container_of(ci, struct ocfs2_refcount_tree, rf_ci); in cache_info_to_refcount()
152 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_owner()
160 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_get_super()
167 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_lock()
174 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_unlock()
181 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_lock()
188 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_unlock()
202 static struct ocfs2_refcount_tree *
206 struct ocfs2_refcount_tree *tree = NULL; in ocfs2_find_refcount_tree()
209 tree = rb_entry(n, struct ocfs2_refcount_tree, rf_node); in ocfs2_find_refcount_tree()
224 struct ocfs2_refcount_tree *new) in ocfs2_insert_refcount_tree()
229 struct ocfs2_refcount_tree *tmp; in ocfs2_insert_refcount_tree()
234 tmp = rb_entry(parent, struct ocfs2_refcount_tree, in ocfs2_insert_refcount_tree()
253 static void ocfs2_free_refcount_tree(struct ocfs2_refcount_tree *tree) in ocfs2_free_refcount_tree()
263 struct ocfs2_refcount_tree *tree) in ocfs2_erase_refcount_tree_from_list_no_lock()
271 struct ocfs2_refcount_tree *tree) in ocfs2_erase_refcount_tree_from_list()
280 struct ocfs2_refcount_tree *tree = in ocfs2_kref_remove_refcount_tree()
281 container_of(kref, struct ocfs2_refcount_tree, rf_getcnt); in ocfs2_kref_remove_refcount_tree()
287 ocfs2_refcount_tree_get(struct ocfs2_refcount_tree *tree) in ocfs2_refcount_tree_get()
293 ocfs2_refcount_tree_put(struct ocfs2_refcount_tree *tree) in ocfs2_refcount_tree_put()
298 static inline void ocfs2_init_refcount_tree_ci(struct ocfs2_refcount_tree *new, in ocfs2_init_refcount_tree_ci()
308 struct ocfs2_refcount_tree *new, in ocfs2_init_refcount_tree_lock()
316 static struct ocfs2_refcount_tree*
319 struct ocfs2_refcount_tree *new; in ocfs2_allocate_refcount_tree()
321 new = kzalloc(sizeof(struct ocfs2_refcount_tree), GFP_NOFS); in ocfs2_allocate_refcount_tree()
333 struct ocfs2_refcount_tree **ret_tree) in ocfs2_get_refcount_tree()
336 struct ocfs2_refcount_tree *tree, *new = NULL; in ocfs2_get_refcount_tree()
425 struct ocfs2_refcount_tree *tree, int rw) in __ocfs2_lock_refcount_tree()
454 struct ocfs2_refcount_tree **ret_tree, in ocfs2_lock_refcount_tree()
458 struct ocfs2_refcount_tree *tree = NULL; in ocfs2_lock_refcount_tree()
527 struct ocfs2_refcount_tree *tree, int rw) in ocfs2_unlock_refcount_tree()
541 struct ocfs2_refcount_tree *tree; in ocfs2_purge_refcount_trees()
545 tree = rb_entry(node, struct ocfs2_refcount_tree, rf_node); in ocfs2_purge_refcount_trees()
570 struct ocfs2_refcount_tree *new_tree = NULL, *tree = NULL; in ocfs2_create_refcount_tree()
711 struct ocfs2_refcount_tree *ref_tree; in ocfs2_set_refcount_tree()
775 struct ocfs2_refcount_tree *ref_tree; in ocfs2_remove_refcount_tree()
2310 struct ocfs2_refcount_tree *tree; in ocfs2_decrease_refcount()
2363 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted()
2546 struct ocfs2_refcount_tree *tree; in ocfs2_prepare_refcount_change_for_del()
2549 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del()
3380 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_replace_cow()
3437 struct ocfs2_refcount_tree *ref_tree; in ocfs2_refcount_cow_hunk()
3643 struct ocfs2_refcount_tree *ref_tree, in ocfs2_refcount_cow_xattr()
3819 struct ocfs2_refcount_tree *ref_tree; in ocfs2_attach_refcount_tree()
4144 struct ocfs2_refcount_tree *ref_tree; in ocfs2_create_reflink_node()
4270 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink()
4430 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink_ioctl()