Lines Matching refs:dent

183 			  const struct ubifs_dent_node *dent,  in dbg_check_name()  argument
188 if (le16_to_cpu(dent->nlen) != fname_len(nm)) in dbg_check_name()
190 if (memcmp(dent->name, fname_name(nm), fname_len(nm))) in dbg_check_name()
201 struct ubifs_dent_node *dent = NULL; in ubifs_lookup() local
219 dent = kmalloc(UBIFS_MAX_DENT_NODE_SZ, GFP_NOFS); in ubifs_lookup()
220 if (!dent) { in ubifs_lookup()
229 err = ubifs_tnc_lookup_dh(c, &key, dent, nm.minor_hash); in ubifs_lookup()
232 err = ubifs_tnc_lookup_nm(c, &key, dent, &nm); in ubifs_lookup()
243 if (dbg_check_name(c, dent, &nm)) { in ubifs_lookup()
248 inode = ubifs_iget(dir->i_sb, le64_to_cpu(dent->inum)); in ubifs_lookup()
271 kfree(dent); in ubifs_lookup()
560 struct ubifs_dent_node *dent; in ubifs_readdir() local
616 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
617 if (IS_ERR(dent)) { in ubifs_readdir()
618 err = PTR_ERR(dent); in ubifs_readdir()
622 ctx->pos = key_hash_flash(c, &dent->key); in ubifs_readdir()
623 file->private_data = dent; in ubifs_readdir()
626 dent = file->private_data; in ubifs_readdir()
627 if (!dent) { in ubifs_readdir()
634 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
635 if (IS_ERR(dent)) { in ubifs_readdir()
636 err = PTR_ERR(dent); in ubifs_readdir()
639 ctx->pos = key_hash_flash(c, &dent->key); in ubifs_readdir()
640 file->private_data = dent; in ubifs_readdir()
645 (unsigned long long)le64_to_cpu(dent->inum), in ubifs_readdir()
646 key_hash_flash(c, &dent->key)); in ubifs_readdir()
647 ubifs_assert(c, le64_to_cpu(dent->ch.sqnum) > in ubifs_readdir()
650 fname_len(&nm) = le16_to_cpu(dent->nlen); in ubifs_readdir()
651 fname_name(&nm) = dent->name; in ubifs_readdir()
657 &dent->key), in ubifs_readdir()
658 le32_to_cpu(dent->cookie), in ubifs_readdir()
668 le64_to_cpu(dent->inum), in ubifs_readdir()
669 vfs_dent_type(dent->type))) { in ubifs_readdir()
676 key_read(c, &dent->key, &key); in ubifs_readdir()
677 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
678 if (IS_ERR(dent)) { in ubifs_readdir()
679 err = PTR_ERR(dent); in ubifs_readdir()
684 ctx->pos = key_hash_flash(c, &dent->key); in ubifs_readdir()
685 file->private_data = dent; in ubifs_readdir()
884 struct ubifs_dent_node *dent; in ubifs_check_dir_empty() local
889 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_check_dir_empty()
890 if (IS_ERR(dent)) { in ubifs_check_dir_empty()
891 err = PTR_ERR(dent); in ubifs_check_dir_empty()
895 kfree(dent); in ubifs_check_dir_empty()