Lines Matching refs:dent

322 	const struct ubifs_dent_node *dent = node;
328 err = ubifs_validate_entry(c, dent);
331 ubifs_dump_node(c, dent);
514 struct ubifs_dent_node *dent = node;
517 key_read(c, &dent->key, &node_key);
530 * @zbr: zbranch of dent
541 struct ubifs_dent_node *dent;
544 /* If possible, match against the dent in the leaf node cache */
546 dent = kmalloc(zbr->len, GFP_NOFS);
547 if (!dent)
550 err = ubifs_tnc_read_node(c, zbr, dent);
555 err = lnc_add_directly(c, zbr, dent);
559 dent = zbr->leaf;
561 nlen = le16_to_cpu(dent->nlen);
562 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len));
576 kfree(dent);
811 * fallible_matches_name - determine if a dent matches a given name.
813 * @zbr: zbranch of dent
829 struct ubifs_dent_node *dent;
832 /* If possible, match against the dent in the leaf node cache */
834 dent = kmalloc(zbr->len, GFP_NOFS);
835 if (!dent)
838 err = fallible_read_node(c, &zbr->key, zbr, dent);
848 err = lnc_add_directly(c, zbr, dent);
852 dent = zbr->leaf;
854 nlen = le16_to_cpu(dent->nlen);
855 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len));
869 kfree(dent);
1008 * @zbr: zbranch of dent
1009 * @lnum: LEB number of dent to match
1010 * @offs: offset of dent to match
1028 * @lnum: LEB number of dent node to match
1029 * @offs: offset of dent node to match
1864 const struct ubifs_dent_node *dent = node;
1874 len = le16_to_cpu(dent->nlen);
1875 if (nm->len == len && !memcmp(dent->name, nm->name, len))
2775 struct ubifs_dent_node *dent;
2824 dent = kmalloc(zbr->len, GFP_NOFS);
2825 if (unlikely(!dent)) {
2841 err = tnc_read_node_nm(c, zbr, dent);
2846 return dent;
2849 kfree(dent);