Lines Matching refs:ci
75 cache_info_to_refcount(struct ocfs2_caching_info *ci) in cache_info_to_refcount() argument
77 return container_of(ci, struct ocfs2_refcount_tree, rf_ci); in cache_info_to_refcount()
133 static int ocfs2_read_refcount_block(struct ocfs2_caching_info *ci, in ocfs2_read_refcount_block() argument
140 rc = ocfs2_read_block(ci, rb_blkno, &tmp, in ocfs2_read_refcount_block()
150 static u64 ocfs2_refcount_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_owner() argument
152 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_owner()
158 ocfs2_refcount_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_get_super() argument
160 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_get_super()
165 static void ocfs2_refcount_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_lock() argument
167 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_lock()
172 static void ocfs2_refcount_cache_unlock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_unlock() argument
174 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_unlock()
179 static void ocfs2_refcount_cache_io_lock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_io_lock() argument
181 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_lock()
186 static void ocfs2_refcount_cache_io_unlock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_io_unlock() argument
188 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_unlock()
884 static void ocfs2_find_refcount_rec_in_rl(struct ocfs2_caching_info *ci, in ocfs2_find_refcount_rec_in_rl() argument
966 static int ocfs2_get_refcount_cpos_end(struct ocfs2_caching_info *ci, in ocfs2_get_refcount_cpos_end() argument
975 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_get_refcount_cpos_end()
1004 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_get_refcount_cpos_end()
1014 ret = ocfs2_find_path(ci, left_path, cpos); in ocfs2_get_refcount_cpos_end()
1033 ret = ocfs2_find_path(ci, right_path, cpos); in ocfs2_get_refcount_cpos_end()
1066 static int ocfs2_get_refcount_rec(struct ocfs2_caching_info *ci, in ocfs2_get_refcount_rec() argument
1079 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_get_refcount_rec()
1084 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, in ocfs2_get_refcount_rec()
1095 ret = ocfs2_find_leaf(ci, el, low_cpos, &eb_bh); in ocfs2_get_refcount_rec()
1108 (unsigned long long)ocfs2_metadata_cache_owner(ci), in ocfs2_get_refcount_rec()
1126 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh, in ocfs2_get_refcount_rec()
1137 ret = ocfs2_read_refcount_block(ci, le64_to_cpu(rec->e_blkno), in ocfs2_get_refcount_rec()
1144 ocfs2_find_refcount_rec_in_rl(ci, ref_leaf_bh, cpos, len, in ocfs2_get_refcount_rec()
1246 struct ocfs2_caching_info *ci, in ocfs2_change_refcount_rec() argument
1256 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_change_refcount_rec()
1264 (unsigned long long)ocfs2_metadata_cache_owner(ci), in ocfs2_change_refcount_rec()
1287 struct ocfs2_caching_info *ci, in ocfs2_expand_inline_ref_root() argument
1296 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_expand_inline_ref_root()
1302 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_expand_inline_ref_root()
1323 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_expand_inline_ref_root()
1325 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_expand_inline_ref_root()
1527 struct ocfs2_caching_info *ci, in ocfs2_new_leaf_refcount_block() argument
1536 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_new_leaf_refcount_block()
1545 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_new_leaf_refcount_block()
1552 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_new_leaf_refcount_block()
1573 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_new_leaf_refcount_block()
1575 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_new_leaf_refcount_block()
1606 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); in ocfs2_new_leaf_refcount_block()
1623 struct ocfs2_caching_info *ci, in ocfs2_expand_refcount_tree() argument
1636 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1649 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1665 struct ocfs2_caching_info *ci, in ocfs2_adjust_refcount_rec() argument
1687 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1696 ret = ocfs2_find_path(ci, path, old_cpos); in ocfs2_adjust_refcount_rec()
1712 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_adjust_refcount_rec()
1719 ret = ocfs2_journal_access_eb(handle, ci, path_leaf_bh(path), in ocfs2_adjust_refcount_rec()
1749 struct ocfs2_caching_info *ci, in ocfs2_insert_refcount_rec() argument
1768 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1775 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1788 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_insert_refcount_rec()
1816 ret = ocfs2_adjust_refcount_rec(handle, ci, in ocfs2_insert_refcount_rec()
1837 struct ocfs2_caching_info *ci, in ocfs2_split_refcount_rec() argument
1894 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_split_refcount_rec()
1905 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_split_refcount_rec()
1919 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_split_refcount_rec()
1993 struct ocfs2_caching_info *ci, in __ocfs2_increase_refcount() argument
2005 (unsigned long long)ocfs2_metadata_cache_owner(ci), in __ocfs2_increase_refcount()
2009 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_increase_refcount()
2034 ret = ocfs2_change_refcount_rec(handle, ci, in __ocfs2_increase_refcount()
2047 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_increase_refcount()
2065 ret = ocfs2_split_refcount_rec(handle, ci, in __ocfs2_increase_refcount()
2087 struct ocfs2_caching_info *ci, in ocfs2_remove_refcount_extent() argument
2094 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_remove_refcount_extent()
2102 (unsigned long long)ocfs2_metadata_cache_owner(ci), in ocfs2_remove_refcount_extent()
2106 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2114 ocfs2_remove_from_cache(ci, ref_leaf_bh); in ocfs2_remove_refcount_extent()
2130 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_remove_refcount_extent()
2167 struct ocfs2_caching_info *ci, in ocfs2_increase_refcount() argument
2173 return __ocfs2_increase_refcount(handle, ci, ref_root_bh, in ocfs2_increase_refcount()
2179 struct ocfs2_caching_info *ci, in ocfs2_decrease_refcount_rec() argument
2196 (unsigned long long)ocfs2_metadata_cache_owner(ci), in ocfs2_decrease_refcount_rec()
2201 ret = ocfs2_change_refcount_rec(handle, ci, in ocfs2_decrease_refcount_rec()
2210 ret = ocfs2_split_refcount_rec(handle, ci, in ocfs2_decrease_refcount_rec()
2223 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, in ocfs2_decrease_refcount_rec()
2235 struct ocfs2_caching_info *ci, in __ocfs2_decrease_refcount() argument
2245 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in __ocfs2_decrease_refcount()
2249 (unsigned long long)ocfs2_metadata_cache_owner(ci), in __ocfs2_decrease_refcount()
2253 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_decrease_refcount()
2269 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_decrease_refcount()
2386 struct ocfs2_caching_info *ci, in ocfs2_calc_refcount_meta_credits() argument
2401 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2505 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
3021 struct ocfs2_caching_info *ci = INODE_CACHE(inode); in ocfs2_duplicate_clusters_by_jbd() local
3040 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_duplicate_clusters_by_jbd()
3042 ret = ocfs2_read_block(ci, old_block, &old_bh, NULL); in ocfs2_duplicate_clusters_by_jbd()
3048 ret = ocfs2_journal_access(handle, ci, new_bh, in ocfs2_duplicate_clusters_by_jbd()
3136 struct ocfs2_caching_info *ci = context->data_et.et_ci; in ocfs2_replace_clusters() local
3137 u64 ino = ocfs2_metadata_cache_owner(ci); in ocfs2_replace_clusters()