Lines Matching refs:ci_num_cached
103 ci->ci_num_cached = 0; in ocfs2_metadata_cache_reset()
164 to_purge = ci->ci_num_cached; in ocfs2_metadata_cache_purge()
196 for (i = 0; i < ci->ci_num_cached; i++) { in ocfs2_search_cache_array()
290 BUG_ON(ci->ci_num_cached >= OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_append_cache_array()
294 (unsigned long long)block, ci->ci_num_cached); in ocfs2_append_cache_array()
296 ci->ci_cache.ci_array[ci->ci_num_cached] = block; in ocfs2_append_cache_array()
297 ci->ci_num_cached++; in ocfs2_append_cache_array()
313 (unsigned long long)block, ci->ci_num_cached); in __ocfs2_insert_cache_tree()
334 ci->ci_num_cached++; in __ocfs2_insert_cache_tree()
341 (ci->ci_num_cached < OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_insert_can_use_array()
354 mlog_bug_on_msg(ci->ci_num_cached != OCFS2_CACHE_INFO_MAX_ARRAY, in ocfs2_expand_cache()
357 ci->ci_num_cached, OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_expand_cache()
370 ci->ci_num_cached = 0; in ocfs2_expand_cache()
379 ci->ci_flags, ci->ci_num_cached); in ocfs2_expand_cache()
526 BUG_ON(index >= ci->ci_num_cached); in ocfs2_remove_metadata_array()
527 BUG_ON(!ci->ci_num_cached); in ocfs2_remove_metadata_array()
531 index, ci->ci_num_cached); in ocfs2_remove_metadata_array()
533 ci->ci_num_cached--; in ocfs2_remove_metadata_array()
537 if (ci->ci_num_cached && index < ci->ci_num_cached) { in ocfs2_remove_metadata_array()
538 bytes = sizeof(sector_t) * (ci->ci_num_cached - index); in ocfs2_remove_metadata_array()
552 ci->ci_num_cached--; in ocfs2_remove_metadata_tree()
564 (unsigned long long) block, ci->ci_num_cached, in ocfs2_remove_block_from_cache()