Lines Matching defs:tree
157 unsigned int tree, to_purge, purged;
163 tree = !(ci->ci_flags & OCFS2_CACHE_FL_INLINE);
168 to_purge, tree);
170 /* If we're a tree, save off the root so that we can safely
171 * initialize the cache. We do the work to free tree members
173 if (tree)
183 if (tree && purged != to_purge)
301 * exist in the tree.
344 /* tree should be exactly OCFS2_CACHE_INFO_MAX_ARRAY wide. NULL the
345 * pointers in tree after we use them - this allows caller to detect
350 struct ocfs2_meta_cache_item **tree)
362 /* Be careful to initialize the tree members *first* because
365 tree[i]->c_block = ci->ci_cache.ci_array[i];
373 __ocfs2_insert_cache_tree(ci, tree[i]);
374 tree[i] = NULL;
390 struct ocfs2_meta_cache_item *tree[OCFS2_CACHE_INFO_MAX_ARRAY] =
408 tree[i] = kmem_cache_alloc(ocfs2_uptodate_cachep,
410 if (!tree[i]) {
429 ocfs2_expand_cache(ci, tree);
441 if (tree[0]) {
443 if (tree[i])
445 tree[i]);
452 * a tree, the code will not recheck after acquiring the lock --
453 * multiple paths cannot be expanding to a tree at the same time.
456 * (including the whole tree wiped and reset) when this process it out
494 /* We need to bump things up to a tree. */