Lines Matching defs:item
43 * item for them)
150 struct ocfs2_meta_cache_item *item;
153 item = rb_entry(node, struct ocfs2_meta_cache_item, c_node);
155 mlog(0, "Purge item %llu\n",
156 (unsigned long long) item->c_block);
158 rb_erase(&item->c_node, root);
159 kmem_cache_free(ocfs2_uptodate_cachep, item);
209 sector_t item)
214 if (item == ci->ci_cache.ci_array[i])
221 /* Returns the cache item if found, otherwise NULL.
228 struct ocfs2_meta_cache_item *item = NULL;
231 item = rb_entry(n, struct ocfs2_meta_cache_item, c_node);
233 if (block < item->c_block)
235 else if (block > item->c_block)
238 return item;
248 struct ocfs2_meta_cache_item *item = NULL;
260 item = ocfs2_search_cache_tree(ci, bh->b_blocknr);
264 mlog(0, "index = %d, item = %p\n", index, item);
266 return (index != -1) || (item != NULL);
316 /* By now the caller should have checked that the item does *not*
560 struct ocfs2_meta_cache_item *item)
563 (unsigned long long) item->c_block);
565 rb_erase(&item->c_node, &ci->ci_cache.ci_tree);
573 struct ocfs2_meta_cache_item *item = NULL;
586 item = ocfs2_search_cache_tree(ci, block);
587 if (item)
588 ocfs2_remove_metadata_tree(ci, item);
592 if (item)
593 kmem_cache_free(ocfs2_uptodate_cachep, item);