Lines Matching refs:tree
174 unsigned int tree, to_purge, purged;
180 tree = !(ci->ci_flags & OCFS2_CACHE_FL_INLINE);
184 tree ? "array" : "tree",
187 /* If we're a tree, save off the root so that we can safely
188 * initialize the cache. We do the work to free tree members
190 if (tree)
200 if (tree && purged != to_purge)
317 * exist in the tree.
359 /* tree should be exactly OCFS2_CACHE_INFO_MAX_ARRAY wide. NULL the
360 * pointers in tree after we use them - this allows caller to detect
365 struct ocfs2_meta_cache_item **tree)
377 /* Be careful to initialize the tree members *first* because
380 tree[i]->c_block = ci->ci_cache.ci_array[i];
388 __ocfs2_insert_cache_tree(ci, tree[i]);
389 tree[i] = NULL;
392 mlog(0, "Expanded %llu to a tree cache: flags 0x%x, num = %u\n",
405 struct ocfs2_meta_cache_item *tree[OCFS2_CACHE_INFO_MAX_ARRAY] =
423 tree[i] = kmem_cache_alloc(ocfs2_uptodate_cachep,
425 if (!tree[i]) {
436 mlog(0, "Someone cleared the tree underneath us\n");
445 ocfs2_expand_cache(ci, tree);
457 if (tree[0]) {
459 if (tree[i])
461 tree[i]);
468 * a tree, the code will not recheck after acquiring the lock --
469 * multiple paths cannot be expanding to a tree at the same time.
472 * (including the whole tree wiped and reset) when this process it out
510 /* We need to bump things up to a tree. */
562 mlog(0, "remove block %llu from tree\n",