/fs/gfs2/ |
D | dir.c | 92 typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent, 404 static inline int gfs2_dirent_sentinel(const struct gfs2_dirent *dent) in gfs2_dirent_sentinel() argument 406 return dent->de_inum.no_addr == 0 || dent->de_inum.no_formal_ino == 0; in gfs2_dirent_sentinel() 409 static inline int __gfs2_dirent_find(const struct gfs2_dirent *dent, in __gfs2_dirent_find() argument 412 if (!gfs2_dirent_sentinel(dent) && in __gfs2_dirent_find() 413 be32_to_cpu(dent->de_hash) == name->hash && in __gfs2_dirent_find() 414 be16_to_cpu(dent->de_name_len) == name->len && in __gfs2_dirent_find() 415 memcmp(dent+1, name->name, name->len) == 0) in __gfs2_dirent_find() 420 static int gfs2_dirent_find(const struct gfs2_dirent *dent, in gfs2_dirent_find() argument 424 return __gfs2_dirent_find(dent, name, 1); in gfs2_dirent_find() [all …]
|
D | dir.h | 24 struct gfs2_dirent *dent; member 71 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument 73 dent->de_inum.no_addr = cpu_to_be64(0); in gfs2_qstr2dirent() 74 dent->de_inum.no_formal_ino = cpu_to_be64(0); in gfs2_qstr2dirent() 75 dent->de_hash = cpu_to_be32(name->hash); in gfs2_qstr2dirent() 76 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent() 77 dent->de_name_len = cpu_to_be16(name->len); in gfs2_qstr2dirent() 78 dent->de_type = cpu_to_be16(0); in gfs2_qstr2dirent() 79 memset(dent->__pad, 0, sizeof(dent->__pad)); in gfs2_qstr2dirent() 80 memcpy(dent + 1, name->name, name->len); in gfs2_qstr2dirent()
|
D | inode.h | 76 struct gfs2_dirent *dent) in gfs2_inum_out() argument 78 dent->de_inum.no_formal_ino = cpu_to_be64(ip->i_no_formal_ino); in gfs2_inum_out() 79 dent->de_inum.no_addr = cpu_to_be64(ip->i_no_addr); in gfs2_inum_out()
|
D | glock.c | 2112 struct dentry *dent; in gfs2_create_debugfs_file() local 2114 dent = debugfs_create_dir(sdp->sd_table_name, gfs2_root); in gfs2_create_debugfs_file() 2115 if (IS_ERR_OR_NULL(dent)) in gfs2_create_debugfs_file() 2117 sdp->debugfs_dir = dent; in gfs2_create_debugfs_file() 2119 dent = debugfs_create_file("glocks", in gfs2_create_debugfs_file() 2123 if (IS_ERR_OR_NULL(dent)) in gfs2_create_debugfs_file() 2125 sdp->debugfs_dentry_glocks = dent; in gfs2_create_debugfs_file() 2127 dent = debugfs_create_file("glstats", in gfs2_create_debugfs_file() 2131 if (IS_ERR_OR_NULL(dent)) in gfs2_create_debugfs_file() 2133 sdp->debugfs_dentry_glstats = dent; in gfs2_create_debugfs_file() [all …]
|
D | inode.c | 411 struct gfs2_dirent *dent = (struct gfs2_dirent *)(di+1); in gfs2_init_dir() local 413 gfs2_qstr2dirent(&gfs2_qdot, GFS2_DIRENT_SIZE(gfs2_qdot.len), dent); in gfs2_init_dir() 414 dent->de_inum = di->di_num; /* already GFS2 endian */ in gfs2_init_dir() 415 dent->de_type = cpu_to_be16(DT_DIR); in gfs2_init_dir() 417 dent = (struct gfs2_dirent *)((char*)dent + GFS2_DIRENT_SIZE(1)); in gfs2_init_dir() 418 …_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), dent); in gfs2_init_dir() 419 gfs2_inum_out(parent, dent); in gfs2_init_dir() 420 dent->de_type = cpu_to_be16(DT_DIR); in gfs2_init_dir()
|
/fs/sdcardfs/ |
D | sdcardfs.h | 241 #define SDCARDFS_D(dent) ((struct sdcardfs_dentry_info *)(dent)->d_fsdata) argument 295 static inline void sdcardfs_get_##pname(const struct dentry *dent, \ 298 spin_lock(&SDCARDFS_D(dent)->lock); \ 299 pathcpy(pname, &SDCARDFS_D(dent)->pname); \ 301 spin_unlock(&SDCARDFS_D(dent)->lock); \ 304 static inline void sdcardfs_put_##pname(const struct dentry *dent, \ 310 static inline void sdcardfs_set_##pname(const struct dentry *dent, \ 313 spin_lock(&SDCARDFS_D(dent)->lock); \ 314 pathcpy(&SDCARDFS_D(dent)->pname, pname); \ 315 spin_unlock(&SDCARDFS_D(dent)->lock); \ [all …]
|
D | derived_perm.c | 377 int is_obbpath_invalid(struct dentry *dent) in is_obbpath_invalid() argument 380 struct sdcardfs_dentry_info *di = SDCARDFS_D(dent); in is_obbpath_invalid() 381 struct sdcardfs_sb_info *sbi = SDCARDFS_SB(dent->d_sb); in is_obbpath_invalid()
|
/fs/ubifs/ |
D | debug.c | 239 struct ubifs_dent_node *dent, *pdent = NULL; in ubifs_dump_inode() local 283 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_dump_inode() 284 if (IS_ERR(dent)) { in ubifs_dump_inode() 285 if (PTR_ERR(dent) != -ENOENT) in ubifs_dump_inode() 286 pr_err("error %ld\n", PTR_ERR(dent)); in ubifs_dump_inode() 291 count++, (unsigned long long) le64_to_cpu(dent->inum), in ubifs_dump_inode() 292 get_dent_type(dent->type), in ubifs_dump_inode() 293 le16_to_cpu(dent->nlen)); in ubifs_dump_inode() 295 fname_name(&nm) = dent->name; in ubifs_dump_inode() 296 fname_len(&nm) = le16_to_cpu(dent->nlen); in ubifs_dump_inode() [all …]
|
D | dir.c | 199 const struct ubifs_dent_node *dent, in dbg_check_name() argument 204 if (le16_to_cpu(dent->nlen) != fname_len(nm)) in dbg_check_name() 206 if (memcmp(dent->name, fname_name(nm), fname_len(nm))) in dbg_check_name() 217 struct ubifs_dent_node *dent; in ubifs_lookup() local 236 dent = kmalloc(UBIFS_MAX_DENT_NODE_SZ, GFP_NOFS); in ubifs_lookup() 237 if (!dent) { in ubifs_lookup() 248 err = ubifs_tnc_lookup_dh(c, &key, dent, nm.minor_hash); in ubifs_lookup() 251 err = ubifs_tnc_lookup_nm(c, &key, dent, &nm); in ubifs_lookup() 262 if (dbg_check_name(c, dent, &nm)) { in ubifs_lookup() 267 inode = ubifs_iget(dir->i_sb, le64_to_cpu(dent->inum)); in ubifs_lookup() [all …]
|
D | journal.c | 78 static inline void zero_dent_node_unused(struct ubifs_dent_node *dent) in zero_dent_node_unused() argument 80 dent->padding1 = 0; in zero_dent_node_unused() 504 static void set_dent_cookie(struct ubifs_info *c, struct ubifs_dent_node *dent) in set_dent_cookie() argument 507 dent->cookie = prandom_u32(); in set_dent_cookie() 509 dent->cookie = 0; in set_dent_cookie() 548 struct ubifs_dent_node *dent; in ubifs_jnl_update() local 575 dent = kzalloc(len, GFP_NOFS); in ubifs_jnl_update() 576 if (!dent) in ubifs_jnl_update() 585 dent->ch.node_type = UBIFS_DENT_NODE; in ubifs_jnl_update() 591 dent->ch.node_type = UBIFS_XENT_NODE; in ubifs_jnl_update() [all …]
|
D | tnc.c | 322 const struct ubifs_dent_node *dent = node; in lnc_add() local 328 err = ubifs_validate_entry(c, dent); in lnc_add() 331 ubifs_dump_node(c, dent); in lnc_add() 514 struct ubifs_dent_node *dent = node; in fallible_read_node() local 517 key_read(c, &dent->key, &node_key); in fallible_read_node() 541 struct ubifs_dent_node *dent; in matches_name() local 546 dent = kmalloc(zbr->len, GFP_NOFS); in matches_name() 547 if (!dent) in matches_name() 550 err = ubifs_tnc_read_node(c, zbr, dent); in matches_name() 555 err = lnc_add_directly(c, zbr, dent); in matches_name() [all …]
|
D | replay.c | 488 const struct ubifs_dent_node *dent) in ubifs_validate_entry() argument 490 int key_type = key_type_flash(c, dent->key); in ubifs_validate_entry() 491 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() 493 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry() 494 dent->type >= UBIFS_ITYPES_CNT || in ubifs_validate_entry() 495 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry() 496 (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || in ubifs_validate_entry() 497 le64_to_cpu(dent->inum) > MAX_INUM) { in ubifs_validate_entry() 664 struct ubifs_dent_node *dent = snod->node; in replay_bud() local 666 err = ubifs_validate_entry(c, dent); in replay_bud() [all …]
|
D | ubifs.h | 1659 const struct ubifs_dent_node *dent);
|
/fs/ntfs/ |
D | namei.c | 103 static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, in ntfs_lookup() argument 115 dent, dir_ino->i_ino); in ntfs_lookup() 117 uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len, in ntfs_lookup() 140 return d_splice_alias(dent_inode, dent); in ntfs_lookup() 168 d_add(dent, NULL); in ntfs_lookup() 256 nls_name.hash = full_name_hash(dent, nls_name.name, nls_name.len); in ntfs_lookup() 258 dent = d_add_ci(dent, dent_inode, &nls_name); in ntfs_lookup() 260 return dent; in ntfs_lookup()
|
/fs/ncpfs/ |
D | dir.c | 480 struct dentry *dent; in ncp_readdir() local 488 dent = ctl.cache->dentry[ctl.idx]; in ncp_readdir() 489 if (unlikely(!lockref_get_not_dead(&dent->d_lockref))) { in ncp_readdir() 494 if (d_really_is_negative(dent)) { in ncp_readdir() 495 dput(dent); in ncp_readdir() 498 over = !dir_emit(ctx, dent->d_name.name, in ncp_readdir() 499 dent->d_name.len, in ncp_readdir() 500 d_inode(dent)->i_ino, DT_UNKNOWN); in ncp_readdir() 501 dput(dent); in ncp_readdir() 792 struct dentry* dent; in ncp_conn_logged_in() local [all …]
|
/fs/ |
D | block_dev.c | 818 struct dentry *dent; in bd_mount() local 819 dent = mount_pseudo(fs_type, "bdev:", &bdev_sops, NULL, BDEVFS_MAGIC); in bd_mount() 820 if (!IS_ERR(dent)) in bd_mount() 821 dent->d_sb->s_iflags |= SB_I_CGROUPWB; in bd_mount() 822 return dent; in bd_mount()
|