Lines Matching full:leaf

288  * lnc_add - add a leaf node to the leaf node cache.
290 * @zbr: zbranch of leaf node
291 * @node: leaf node
293 * Leaf nodes are non-index nodes directory entry nodes or data nodes. The
294 * purpose of the leaf node cache is to save re-reading the same leaf node over
297 * present implementation of the leaf node cache is extremely simple, and
314 ubifs_assert(!zbr->leaf); in lnc_add()
330 zbr->leaf = lnc_node; in lnc_add()
335 * lnc_add_directly - add a leaf node to the leaf-node-cache.
337 * @zbr: zbranch of leaf node
338 * @node: leaf node
348 ubifs_assert(!zbr->leaf); in lnc_add_directly()
358 zbr->leaf = node; in lnc_add_directly()
363 * lnc_free - remove a leaf node from the leaf node cache.
364 * @zbr: zbranch of leaf node
365 * @node: leaf node
369 if (!zbr->leaf) in lnc_free()
371 kfree(zbr->leaf); in lnc_free()
372 zbr->leaf = NULL; in lnc_free()
376 * tnc_read_node_nm - read a "hashed" leaf node.
381 * This function reads a "hashed" node defined by @zbr from the leaf node cache
393 if (zbr->leaf) { in tnc_read_node_nm()
394 /* Read from the leaf node cache */ in tnc_read_node_nm()
396 memcpy(node, zbr->leaf, zbr->len); in tnc_read_node_nm()
404 /* Add the node to the leaf node cache */ in tnc_read_node_nm()
472 * fallible_read_node - try to read a leaf node.
522 /* If possible, match against the dent in the leaf node cache */ in matches_name()
523 if (!zbr->leaf) { in matches_name()
532 /* Add the node to the leaf node cache */ in matches_name()
537 dent = zbr->leaf; in matches_name()
810 /* If possible, match against the dent in the leaf node cache */ in fallible_matches_name()
811 if (!zbr->leaf) { in fallible_matches_name()
830 dent = zbr->leaf; in fallible_matches_name()
1452 * In this case the leaf node cache gets used, so we pass the in ubifs_tnc_locate()
2369 * This function deletes a leaf node from @n-th slot of @znode. Returns zero in