Lines Matching refs:ocfs2_refcount_tree

47 	struct ocfs2_refcount_tree *ref_tree;
65 static inline struct ocfs2_refcount_tree *
68 return container_of(ci, struct ocfs2_refcount_tree, rf_ci); in cache_info_to_refcount()
141 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_owner()
149 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_get_super()
157 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_lock()
165 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_unlock()
172 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_lock()
179 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_unlock()
193 static struct ocfs2_refcount_tree *
197 struct ocfs2_refcount_tree *tree = NULL; in ocfs2_find_refcount_tree()
200 tree = rb_entry(n, struct ocfs2_refcount_tree, rf_node); in ocfs2_find_refcount_tree()
215 struct ocfs2_refcount_tree *new) in ocfs2_insert_refcount_tree()
220 struct ocfs2_refcount_tree *tmp; in ocfs2_insert_refcount_tree()
225 tmp = rb_entry(parent, struct ocfs2_refcount_tree, in ocfs2_insert_refcount_tree()
244 static void ocfs2_free_refcount_tree(struct ocfs2_refcount_tree *tree) in ocfs2_free_refcount_tree()
254 struct ocfs2_refcount_tree *tree) in ocfs2_erase_refcount_tree_from_list_no_lock()
262 struct ocfs2_refcount_tree *tree) in ocfs2_erase_refcount_tree_from_list()
271 struct ocfs2_refcount_tree *tree = in ocfs2_kref_remove_refcount_tree()
272 container_of(kref, struct ocfs2_refcount_tree, rf_getcnt); in ocfs2_kref_remove_refcount_tree()
278 ocfs2_refcount_tree_get(struct ocfs2_refcount_tree *tree) in ocfs2_refcount_tree_get()
284 ocfs2_refcount_tree_put(struct ocfs2_refcount_tree *tree) in ocfs2_refcount_tree_put()
289 static inline void ocfs2_init_refcount_tree_ci(struct ocfs2_refcount_tree *new, in ocfs2_init_refcount_tree_ci()
299 struct ocfs2_refcount_tree *new, in ocfs2_init_refcount_tree_lock()
307 static struct ocfs2_refcount_tree*
310 struct ocfs2_refcount_tree *new; in ocfs2_allocate_refcount_tree()
312 new = kzalloc(sizeof(struct ocfs2_refcount_tree), GFP_NOFS); in ocfs2_allocate_refcount_tree()
324 struct ocfs2_refcount_tree **ret_tree) in ocfs2_get_refcount_tree()
327 struct ocfs2_refcount_tree *tree, *new = NULL; in ocfs2_get_refcount_tree()
416 struct ocfs2_refcount_tree *tree, int rw) in __ocfs2_lock_refcount_tree()
445 struct ocfs2_refcount_tree **ret_tree, in ocfs2_lock_refcount_tree()
449 struct ocfs2_refcount_tree *tree = NULL; in ocfs2_lock_refcount_tree()
517 struct ocfs2_refcount_tree *tree, int rw) in ocfs2_unlock_refcount_tree()
531 struct ocfs2_refcount_tree *tree; in ocfs2_purge_refcount_trees()
535 tree = rb_entry(node, struct ocfs2_refcount_tree, rf_node); in ocfs2_purge_refcount_trees()
560 struct ocfs2_refcount_tree *new_tree = NULL, *tree = NULL; in ocfs2_create_refcount_tree()
701 struct ocfs2_refcount_tree *ref_tree; in ocfs2_set_refcount_tree()
765 struct ocfs2_refcount_tree *ref_tree; in ocfs2_remove_refcount_tree()
2295 struct ocfs2_refcount_tree *tree; in ocfs2_decrease_refcount()
2348 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted()
2528 struct ocfs2_refcount_tree *tree; in ocfs2_prepare_refcount_change_for_del()
2531 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del()
3334 if (!ocfs2_refcount_tree(osb)) { in ocfs2_replace_cow()
3388 struct ocfs2_refcount_tree *ref_tree; in ocfs2_refcount_cow_hunk()
3594 struct ocfs2_refcount_tree *ref_tree, in ocfs2_refcount_cow_xattr()
3772 struct ocfs2_refcount_tree *ref_tree; in ocfs2_attach_refcount_tree()
4103 struct ocfs2_refcount_tree *ref_tree; in ocfs2_create_reflink_node()
4229 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink()
4399 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink_ioctl()
4485 struct ocfs2_refcount_tree *ref_tree; in ocfs2_reflink_remap_extent()