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()
131 static int ocfs2_read_refcount_block(struct ocfs2_caching_info *ci, in ocfs2_read_refcount_block() argument
138 rc = ocfs2_read_block(ci, rb_blkno, &tmp, in ocfs2_read_refcount_block()
148 static u64 ocfs2_refcount_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_owner() argument
150 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_owner()
156 ocfs2_refcount_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_get_super() argument
158 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_get_super()
163 static void ocfs2_refcount_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_lock() argument
165 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_lock()
170 static void ocfs2_refcount_cache_unlock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_unlock() argument
172 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_unlock()
177 static void ocfs2_refcount_cache_io_lock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_io_lock() argument
179 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_lock()
184 static void ocfs2_refcount_cache_io_unlock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_io_unlock() argument
186 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_io_unlock()
882 static void ocfs2_find_refcount_rec_in_rl(struct ocfs2_caching_info *ci, in ocfs2_find_refcount_rec_in_rl() argument
964 static int ocfs2_get_refcount_cpos_end(struct ocfs2_caching_info *ci, in ocfs2_get_refcount_cpos_end() argument
973 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_get_refcount_cpos_end()
1002 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_get_refcount_cpos_end()
1012 ret = ocfs2_find_path(ci, left_path, cpos); in ocfs2_get_refcount_cpos_end()
1031 ret = ocfs2_find_path(ci, right_path, cpos); in ocfs2_get_refcount_cpos_end()
1064 static int ocfs2_get_refcount_rec(struct ocfs2_caching_info *ci, in ocfs2_get_refcount_rec() argument
1077 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_get_refcount_rec()
1082 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, in ocfs2_get_refcount_rec()
1093 ret = ocfs2_find_leaf(ci, el, low_cpos, &eb_bh); in ocfs2_get_refcount_rec()
1105 (unsigned long long)ocfs2_metadata_cache_owner(ci), in ocfs2_get_refcount_rec()
1122 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh, in ocfs2_get_refcount_rec()
1133 ret = ocfs2_read_refcount_block(ci, le64_to_cpu(rec->e_blkno), in ocfs2_get_refcount_rec()
1140 ocfs2_find_refcount_rec_in_rl(ci, ref_leaf_bh, cpos, len, in ocfs2_get_refcount_rec()
1242 struct ocfs2_caching_info *ci, in ocfs2_change_refcount_rec() argument
1252 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_change_refcount_rec()
1260 (unsigned long long)ocfs2_metadata_cache_owner(ci), in ocfs2_change_refcount_rec()
1283 struct ocfs2_caching_info *ci, in ocfs2_expand_inline_ref_root() argument
1292 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_expand_inline_ref_root()
1298 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_expand_inline_ref_root()
1319 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_expand_inline_ref_root()
1321 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_expand_inline_ref_root()
1521 struct ocfs2_caching_info *ci, in ocfs2_new_leaf_refcount_block() argument
1530 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_new_leaf_refcount_block()
1539 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_new_leaf_refcount_block()
1546 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_new_leaf_refcount_block()
1567 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_new_leaf_refcount_block()
1569 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_new_leaf_refcount_block()
1600 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); in ocfs2_new_leaf_refcount_block()
1617 struct ocfs2_caching_info *ci, in ocfs2_expand_refcount_tree() argument
1630 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1643 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1659 struct ocfs2_caching_info *ci, in ocfs2_adjust_refcount_rec() argument
1681 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1690 ret = ocfs2_find_path(ci, path, old_cpos); in ocfs2_adjust_refcount_rec()
1706 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_adjust_refcount_rec()
1713 ret = ocfs2_journal_access_eb(handle, ci, path_leaf_bh(path), in ocfs2_adjust_refcount_rec()
1743 struct ocfs2_caching_info *ci, in ocfs2_insert_refcount_rec() argument
1762 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1769 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1782 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_insert_refcount_rec()
1810 ret = ocfs2_adjust_refcount_rec(handle, ci, in ocfs2_insert_refcount_rec()
1831 struct ocfs2_caching_info *ci, in ocfs2_split_refcount_rec() argument
1888 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_split_refcount_rec()
1899 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_split_refcount_rec()
1913 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_split_refcount_rec()
1987 struct ocfs2_caching_info *ci, in __ocfs2_increase_refcount() argument
1999 (unsigned long long)ocfs2_metadata_cache_owner(ci), in __ocfs2_increase_refcount()
2003 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_increase_refcount()
2028 ret = ocfs2_change_refcount_rec(handle, ci, in __ocfs2_increase_refcount()
2041 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_increase_refcount()
2059 ret = ocfs2_split_refcount_rec(handle, ci, in __ocfs2_increase_refcount()
2081 struct ocfs2_caching_info *ci, in ocfs2_remove_refcount_extent() argument
2088 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_remove_refcount_extent()
2096 (unsigned long long)ocfs2_metadata_cache_owner(ci), in ocfs2_remove_refcount_extent()
2100 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2108 ocfs2_remove_from_cache(ci, ref_leaf_bh); in ocfs2_remove_refcount_extent()
2124 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_remove_refcount_extent()
2161 struct ocfs2_caching_info *ci, in ocfs2_increase_refcount() argument
2167 return __ocfs2_increase_refcount(handle, ci, ref_root_bh, in ocfs2_increase_refcount()
2173 struct ocfs2_caching_info *ci, in ocfs2_decrease_refcount_rec() argument
2190 (unsigned long long)ocfs2_metadata_cache_owner(ci), in ocfs2_decrease_refcount_rec()
2195 ret = ocfs2_change_refcount_rec(handle, ci, in ocfs2_decrease_refcount_rec()
2204 ret = ocfs2_split_refcount_rec(handle, ci, in ocfs2_decrease_refcount_rec()
2217 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, in ocfs2_decrease_refcount_rec()
2229 struct ocfs2_caching_info *ci, in __ocfs2_decrease_refcount() argument
2239 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in __ocfs2_decrease_refcount()
2243 (unsigned long long)ocfs2_metadata_cache_owner(ci), in __ocfs2_decrease_refcount()
2247 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_decrease_refcount()
2263 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_decrease_refcount()
2378 struct ocfs2_caching_info *ci, in ocfs2_calc_refcount_meta_credits() argument
2393 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2497 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
3007 struct ocfs2_caching_info *ci = INODE_CACHE(inode); in ocfs2_duplicate_clusters_by_jbd() local
3026 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_duplicate_clusters_by_jbd()
3028 ret = ocfs2_read_block(ci, old_block, &old_bh, NULL); in ocfs2_duplicate_clusters_by_jbd()
3034 ret = ocfs2_journal_access(handle, ci, new_bh, in ocfs2_duplicate_clusters_by_jbd()
3120 struct ocfs2_caching_info *ci = context->data_et.et_ci; in ocfs2_replace_clusters() local
3121 u64 ino = ocfs2_metadata_cache_owner(ci); in ocfs2_replace_clusters()