Lines Matching refs:index
191 /* Returns the index in the cache array, -1 if not found.
232 int index = -1;
243 index = ocfs2_search_cache_array(ci, bh->b_blocknr);
249 trace_ocfs2_buffer_cached_end(index, item);
251 return (index != -1) || (item != NULL);
522 int index)
527 BUG_ON(index < 0 || index >= OCFS2_CACHE_INFO_MAX_ARRAY);
528 BUG_ON(index >= ci->ci_num_cached);
533 index, ci->ci_num_cached);
539 if (ci->ci_num_cached && index < ci->ci_num_cached) {
540 bytes = sizeof(sector_t) * (ci->ci_num_cached - index);
541 memmove(&array[index], &array[index + 1], bytes);
560 int index;
570 index = ocfs2_search_cache_array(ci, block);
571 if (index != -1)
572 ocfs2_remove_metadata_array(ci, index);