Lines Matching refs:ocfs2_refcount_tree

49 	struct ocfs2_refcount_tree *ref_tree;
67 static inline struct ocfs2_refcount_tree *
70 return container_of(ci, struct ocfs2_refcount_tree, rf_ci); in cache_info_to_refcount()
143 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_owner()
151 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_get_super()
159 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_lock()
167 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_unlock()
174 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_lock()
181 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_unlock()
195 static struct ocfs2_refcount_tree *
199 struct ocfs2_refcount_tree *tree = NULL; in ocfs2_find_refcount_tree()
202 tree = rb_entry(n, struct ocfs2_refcount_tree, rf_node); in ocfs2_find_refcount_tree()
217 struct ocfs2_refcount_tree *new) in ocfs2_insert_refcount_tree()
222 struct ocfs2_refcount_tree *tmp; in ocfs2_insert_refcount_tree()
227 tmp = rb_entry(parent, struct ocfs2_refcount_tree, in ocfs2_insert_refcount_tree()
246 static void ocfs2_free_refcount_tree(struct ocfs2_refcount_tree *tree) in ocfs2_free_refcount_tree()
256 struct ocfs2_refcount_tree *tree) in ocfs2_erase_refcount_tree_from_list_no_lock()
264 struct ocfs2_refcount_tree *tree) in ocfs2_erase_refcount_tree_from_list()
273 struct ocfs2_refcount_tree *tree = in ocfs2_kref_remove_refcount_tree()
274 container_of(kref, struct ocfs2_refcount_tree, rf_getcnt); in ocfs2_kref_remove_refcount_tree()
280 ocfs2_refcount_tree_get(struct ocfs2_refcount_tree *tree) in ocfs2_refcount_tree_get()
286 ocfs2_refcount_tree_put(struct ocfs2_refcount_tree *tree) in ocfs2_refcount_tree_put()
291 static inline void ocfs2_init_refcount_tree_ci(struct ocfs2_refcount_tree *new, in ocfs2_init_refcount_tree_ci()
301 struct ocfs2_refcount_tree *new, in ocfs2_init_refcount_tree_lock()
309 static struct ocfs2_refcount_tree*
312 struct ocfs2_refcount_tree *new; in ocfs2_allocate_refcount_tree()
314 new = kzalloc(sizeof(struct ocfs2_refcount_tree), GFP_NOFS); in ocfs2_allocate_refcount_tree()
326 struct ocfs2_refcount_tree **ret_tree) in ocfs2_get_refcount_tree()
329 struct ocfs2_refcount_tree *tree, *new = NULL; in ocfs2_get_refcount_tree()
418 struct ocfs2_refcount_tree *tree, int rw) in __ocfs2_lock_refcount_tree()
447 struct ocfs2_refcount_tree **ret_tree, in ocfs2_lock_refcount_tree()
451 struct ocfs2_refcount_tree *tree = NULL; in ocfs2_lock_refcount_tree()
519 struct ocfs2_refcount_tree *tree, int rw) in ocfs2_unlock_refcount_tree()
533 struct ocfs2_refcount_tree *tree; in ocfs2_purge_refcount_trees()
537 tree = rb_entry(node, struct ocfs2_refcount_tree, rf_node); in ocfs2_purge_refcount_trees()
562 struct ocfs2_refcount_tree *new_tree = NULL, *tree = NULL; in ocfs2_create_refcount_tree()
703 struct ocfs2_refcount_tree *ref_tree; in ocfs2_set_refcount_tree()
767 struct ocfs2_refcount_tree *ref_tree; in ocfs2_remove_refcount_tree()
2297 struct ocfs2_refcount_tree *tree; in ocfs2_decrease_refcount()
2350 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted()
2530 struct ocfs2_refcount_tree *tree; in ocfs2_prepare_refcount_change_for_del()
2533 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del()
3364 if (!ocfs2_refcount_tree(osb)) { in ocfs2_replace_cow()
3418 struct ocfs2_refcount_tree *ref_tree; in ocfs2_refcount_cow_hunk()
3624 struct ocfs2_refcount_tree *ref_tree, in ocfs2_refcount_cow_xattr()
3802 struct ocfs2_refcount_tree *ref_tree; in ocfs2_attach_refcount_tree()
4133 struct ocfs2_refcount_tree *ref_tree; in ocfs2_create_reflink_node()
4259 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink()
4429 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink_ioctl()
4515 struct ocfs2_refcount_tree *ref_tree; in ocfs2_reflink_remap_extent()