Lines Matching defs:tree
159 unsigned int tree, to_purge, purged;
165 tree = !(ci->ci_flags & OCFS2_CACHE_FL_INLINE);
170 to_purge, tree);
172 /* If we're a tree, save off the root so that we can safely
173 * initialize the cache. We do the work to free tree members
175 if (tree)
185 if (tree && purged != to_purge)
303 * exist in the tree.
346 /* tree should be exactly OCFS2_CACHE_INFO_MAX_ARRAY wide. NULL the
347 * pointers in tree after we use them - this allows caller to detect
352 struct ocfs2_meta_cache_item **tree)
364 /* Be careful to initialize the tree members *first* because
367 tree[i]->c_block = ci->ci_cache.ci_array[i];
375 __ocfs2_insert_cache_tree(ci, tree[i]);
376 tree[i] = NULL;
392 struct ocfs2_meta_cache_item *tree[OCFS2_CACHE_INFO_MAX_ARRAY] =
410 tree[i] = kmem_cache_alloc(ocfs2_uptodate_cachep,
412 if (!tree[i]) {
431 ocfs2_expand_cache(ci, tree);
443 if (tree[0]) {
445 if (tree[i])
447 tree[i]);
454 * a tree, the code will not recheck after acquiring the lock --
455 * multiple paths cannot be expanding to a tree at the same time.
458 * (including the whole tree wiped and reset) when this process it out
496 /* We need to bump things up to a tree. */