• Home
  • Raw
  • Download

Lines Matching refs:dent

310 	const struct ubifs_dent_node *dent = node;  in lnc_add()  local
316 err = ubifs_validate_entry(c, dent); in lnc_add()
319 ubifs_dump_node(c, dent, zbr->len); in lnc_add()
506 struct ubifs_dent_node *dent = node; in fallible_read_node() local
509 key_read(c, &dent->key, &node_key); in fallible_read_node()
533 struct ubifs_dent_node *dent; in matches_name() local
538 dent = kmalloc(zbr->len, GFP_NOFS); in matches_name()
539 if (!dent) in matches_name()
542 err = ubifs_tnc_read_node(c, zbr, dent); in matches_name()
547 err = lnc_add_directly(c, zbr, dent); in matches_name()
551 dent = zbr->leaf; in matches_name()
553 nlen = le16_to_cpu(dent->nlen); in matches_name()
554 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in matches_name()
568 kfree(dent); in matches_name()
821 struct ubifs_dent_node *dent; in fallible_matches_name() local
826 dent = kmalloc(zbr->len, GFP_NOFS); in fallible_matches_name()
827 if (!dent) in fallible_matches_name()
830 err = fallible_read_node(c, &zbr->key, zbr, dent); in fallible_matches_name()
840 err = lnc_add_directly(c, zbr, dent); in fallible_matches_name()
844 dent = zbr->leaf; in fallible_matches_name()
846 nlen = le16_to_cpu(dent->nlen); in fallible_matches_name()
847 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in fallible_matches_name()
861 kfree(dent); in fallible_matches_name()
1860 const struct ubifs_dent_node *dent = node; in ubifs_tnc_lookup_nm() local
1870 len = le16_to_cpu(dent->nlen); in ubifs_tnc_lookup_nm()
1871 if (fname_len(nm) == len && !memcmp(dent->name, fname_name(nm), len)) in ubifs_tnc_lookup_nm()
1883 struct ubifs_dent_node *dent, uint32_t cookie, in search_dh_cookie() argument
1906 err = tnc_read_hashed_node(c, zbr, dent); in search_dh_cookie()
1911 le32_to_cpu(dent->cookie) == cookie) { in search_dh_cookie()
1923 struct ubifs_dent_node *dent, uint32_t cookie) in do_lookup_dh() argument
1938 err = search_dh_cookie(c, key, dent, cookie, &znode, &n, err); in do_lookup_dh()
1963 const struct ubifs_dent_node *dent = node; in ubifs_tnc_lookup_dh() local
1976 if (le32_to_cpu(dent->cookie) == cookie) in ubifs_tnc_lookup_dh()
2699 struct ubifs_dent_node *dent; in ubifs_tnc_remove_dh() local
2711 dent = kmalloc(UBIFS_MAX_DENT_NODE_SZ, GFP_NOFS); in ubifs_tnc_remove_dh()
2712 if (!dent) { in ubifs_tnc_remove_dh()
2717 err = tnc_read_hashed_node(c, zbr, dent); in ubifs_tnc_remove_dh()
2722 if (le32_to_cpu(dent->cookie) != cookie) { in ubifs_tnc_remove_dh()
2731 err = search_dh_cookie(c, key, dent, cookie, &znode, &n, err); in ubifs_tnc_remove_dh()
2746 kfree(dent); in ubifs_tnc_remove_dh()
2956 struct ubifs_dent_node *dent; in ubifs_tnc_next_ent() local
3005 dent = kmalloc(zbr->len, GFP_NOFS); in ubifs_tnc_next_ent()
3006 if (unlikely(!dent)) { in ubifs_tnc_next_ent()
3022 err = tnc_read_hashed_node(c, zbr, dent); in ubifs_tnc_next_ent()
3027 return dent; in ubifs_tnc_next_ent()
3030 kfree(dent); in ubifs_tnc_next_ent()