Lines Matching refs:index
189 /* Returns the index in the cache array, -1 if not found.
230 int index = -1;
241 index = ocfs2_search_cache_array(ci, bh->b_blocknr);
247 trace_ocfs2_buffer_cached_end(index, item);
249 return (index != -1) || (item != NULL);
520 int index)
525 BUG_ON(index < 0 || index >= OCFS2_CACHE_INFO_MAX_ARRAY);
526 BUG_ON(index >= ci->ci_num_cached);
531 index, ci->ci_num_cached);
537 if (ci->ci_num_cached && index < ci->ci_num_cached) {
538 bytes = sizeof(sector_t) * (ci->ci_num_cached - index);
539 memmove(&array[index], &array[index + 1], bytes);
558 int index;
568 index = ocfs2_search_cache_array(ci, block);
569 if (index != -1)
570 ocfs2_remove_metadata_array(ci, index);