/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | proc-subset-pid.c | 91 assert(de->d_type == DT_DIR); in main() 95 assert(de->d_type == DT_DIR); in main() 99 assert(de->d_type == DT_LNK); in main() 103 assert(de->d_type == DT_LNK); in main() 109 assert(de->d_type == DT_DIR); in main()
|
H A D | fd-001-lookup.c | 116 assert(de->d_type == DT_DIR); in main() 120 assert(de->d_type == DT_DIR); in main() 129 assert(de->d_type == DT_LNK); in main()
|
H A D | read.c | 82 assert(de->d_type == DT_DIR); in f() 86 assert(de->d_type == DT_DIR); in f() 93 switch (de->d_type) { in f()
|
/kernel/linux/linux-5.10/fs/vboxsf/ |
H A D | dir.c | 61 unsigned int d_type; in vboxsf_get_d_type() local 65 d_type = DT_FIFO; in vboxsf_get_d_type() 68 d_type = DT_CHR; in vboxsf_get_d_type() 71 d_type = DT_DIR; in vboxsf_get_d_type() 74 d_type = DT_BLK; in vboxsf_get_d_type() 77 d_type = DT_REG; in vboxsf_get_d_type() 80 d_type = DT_LNK; in vboxsf_get_d_type() 83 d_type = DT_SOCK; in vboxsf_get_d_type() 86 d_type = DT_WHT; in vboxsf_get_d_type() 89 d_type in vboxsf_get_d_type() 101 unsigned int d_type; vboxsf_dir_emit() local [all...] |
/kernel/linux/linux-6.6/fs/vboxsf/ |
H A D | dir.c | 61 unsigned int d_type; in vboxsf_get_d_type() local 65 d_type = DT_FIFO; in vboxsf_get_d_type() 68 d_type = DT_CHR; in vboxsf_get_d_type() 71 d_type = DT_DIR; in vboxsf_get_d_type() 74 d_type = DT_BLK; in vboxsf_get_d_type() 77 d_type = DT_REG; in vboxsf_get_d_type() 80 d_type = DT_LNK; in vboxsf_get_d_type() 83 d_type = DT_SOCK; in vboxsf_get_d_type() 86 d_type = DT_WHT; in vboxsf_get_d_type() 89 d_type in vboxsf_get_d_type() 101 unsigned int d_type; vboxsf_dir_emit() local [all...] |
/kernel/linux/linux-5.10/fs/erofs/ |
H A D | dir.c | 9 static void debug_one_dentry(unsigned char d_type, const char *de_name, in debug_one_dentry() argument 19 erofs_dbg("found dirent %s de_len %u d_type %d", dbg_namebuf, in debug_one_dentry() 20 de_namelen, d_type); in debug_one_dentry() 34 unsigned char d_type; in erofs_fill_dentries() local 36 d_type = fs_ftype_to_dtype(de->file_type); in erofs_fill_dentries() 56 debug_one_dentry(d_type, de_name, de_namelen); in erofs_fill_dentries() 58 le64_to_cpu(de->nid), d_type)) in erofs_fill_dentries()
|
H A D | namei.c | 170 erofs_nid_t *nid, unsigned int *d_type) in erofs_namei() 199 *d_type = de->file_type; in erofs_namei() 215 unsigned int d_type; in erofs_lookup() local 229 err = erofs_namei(dir, &dentry->d_name, &nid, &d_type); in erofs_lookup() 237 erofs_dbg("%s, %s (nid %llu) found, d_type %u", __func__, in erofs_lookup() 238 dentry->d_name.name, nid, d_type); in erofs_lookup() 239 inode = erofs_iget(dir->i_sb, nid, d_type == FT_DIR); in erofs_lookup() 168 erofs_namei(struct inode *dir, struct qstr *name, erofs_nid_t *nid, unsigned int *d_type) erofs_namei() argument
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_dquot_buf.c | 64 if (ddq->d_type & ~XFS_DQTYPE_ANY) in xfs_dquot_verify() 66 ddq_type = ddq->d_type & XFS_DQTYPE_REC_MASK; in xfs_dquot_verify() 72 if ((ddq->d_type & XFS_DQTYPE_BIGTIME) && in xfs_dquot_verify() 76 if ((ddq->d_type & XFS_DQTYPE_BIGTIME) && !ddq->d_id) in xfs_dquot_verify() 134 dqb->dd_diskdq.d_type = type; in xfs_dqblk_repair() 307 if (t != 0 && (ddq->d_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_from_disk_ts()
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_dquot_buf.c | 64 if (ddq->d_type & ~XFS_DQTYPE_ANY) in xfs_dquot_verify() 66 ddq_type = ddq->d_type & XFS_DQTYPE_REC_MASK; in xfs_dquot_verify() 72 if ((ddq->d_type & XFS_DQTYPE_BIGTIME) && in xfs_dquot_verify() 76 if ((ddq->d_type & XFS_DQTYPE_BIGTIME) && !ddq->d_id) in xfs_dquot_verify() 134 dqb->dd_diskdq.d_type = type; in xfs_dqblk_repair() 307 if (t != 0 && (ddq->d_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_from_disk_ts()
|
/kernel/linux/linux-5.10/fs/ |
H A D | readdir.c | 144 loff_t offset, u64 ino, unsigned int d_type) in fillonedir() 223 loff_t offset, u64 ino, unsigned int d_type) in filldir() 256 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir() 311 loff_t offset, u64 ino, unsigned int d_type) in filldir64() 338 unsafe_put_user(d_type, &dirent->d_type, efault_end); in filldir64() 402 unsigned int d_type) in compat_fillonedir() 475 loff_t offset, u64 ino, unsigned int d_type) in compat_filldir() 507 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in compat_filldir() 143 fillonedir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) fillonedir() argument 222 filldir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) filldir() argument 310 filldir64(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) filldir64() argument 400 compat_fillonedir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) compat_fillonedir() argument 474 compat_filldir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) compat_filldir() argument
|
/kernel/linux/linux-6.6/fs/ |
H A D | readdir.c | 180 loff_t offset, u64 ino, unsigned int d_type) in fillonedir() 259 loff_t offset, u64 ino, unsigned int d_type) in filldir() 292 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir() 347 loff_t offset, u64 ino, unsigned int d_type) in filldir64() 374 unsafe_put_user(d_type, &dirent->d_type, efault_end); in filldir64() 438 unsigned int d_type) in compat_fillonedir() 511 loff_t offset, u64 ino, unsigned int d_type) in compat_filldir() 543 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in compat_filldir() 179 fillonedir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) fillonedir() argument 258 filldir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) filldir() argument 346 filldir64(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) filldir64() argument 436 compat_fillonedir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) compat_fillonedir() argument 510 compat_filldir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) compat_filldir() argument
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | tracepoint.h | 12 if (evt_dirent->d_type == DT_DIR && \ 19 if (sys_dirent->d_type == DT_DIR && \
|
H A D | genelf.c | 186 d->d_type = ELF_T_BYTE; in jit_add_eh_frame_info() 220 d->d_type = ELF_T_BYTE; in jit_add_eh_frame_info() 322 d->d_type = ELF_T_BYTE; in jit_write_elf() 369 d->d_type = ELF_T_BYTE; in jit_write_elf() 405 d->d_type = ELF_T_SYM; in jit_write_elf() 448 d->d_type = ELF_T_BYTE; in jit_write_elf() 490 d->d_type = ELF_T_BYTE; in jit_write_elf()
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
H A D | fd-001-lookup.c | 116 assert(de->d_type == DT_DIR); in main() 120 assert(de->d_type == DT_DIR); in main() 129 assert(de->d_type == DT_LNK); in main()
|
H A D | read.c | 80 assert(de->d_type == DT_DIR); in f() 84 assert(de->d_type == DT_DIR); in f() 91 switch (de->d_type) { in f()
|
H A D | fd-003-kthread.c | 106 assert(de->d_type == DT_DIR); in test_readdir() 110 assert(de->d_type == DT_DIR); in test_readdir()
|
/kernel/linux/linux-6.6/fs/erofs/ |
H A D | dir.c | 18 unsigned char d_type; in erofs_fill_dentries() local 20 d_type = fs_ftype_to_dtype(de->file_type); in erofs_fill_dentries() 41 le64_to_cpu(de->nid), d_type)) in erofs_fill_dentries()
|
H A D | namei.c | 162 unsigned int *d_type) in erofs_namei() 187 *d_type = de->file_type; in erofs_namei() 198 unsigned int d_type; in erofs_lookup() local 206 err = erofs_namei(dir, &dentry->d_name, &nid, &d_type); in erofs_lookup() 161 erofs_namei(struct inode *dir, const struct qstr *name, erofs_nid_t *nid, unsigned int *d_type) erofs_namei() argument
|
/kernel/linux/linux-5.10/fs/overlayfs/ |
H A D | readdir.c | 145 u64 ino, unsigned int d_type) in ovl_cache_entry_new() 157 p->type = d_type; in ovl_cache_entry_new() 166 if (d_type == DT_CHR) { in ovl_cache_entry_new() 175 unsigned int d_type) in ovl_cache_entry_add_rb() 184 p = ovl_cache_entry_new(rdd, name, len, ino, d_type); in ovl_cache_entry_add_rb() 199 loff_t offset, u64 ino, unsigned int d_type) in ovl_fill_lowest() 207 p = ovl_cache_entry_new(rdd, name, namelen, ino, d_type); in ovl_fill_lowest() 255 unsigned int d_type) in ovl_fill_merge() 262 return ovl_cache_entry_add_rb(rdd, name, namelen, ino, d_type); in ovl_fill_merge() 264 return ovl_fill_lowest(rdd, name, namelen, offset, ino, d_type); in ovl_fill_merge() 143 ovl_cache_entry_new(struct ovl_readdir_data *rdd, const char *name, int len, u64 ino, unsigned int d_type) ovl_cache_entry_new() argument 173 ovl_cache_entry_add_rb(struct ovl_readdir_data *rdd, const char *name, int len, u64 ino, unsigned int d_type) ovl_cache_entry_add_rb() argument 197 ovl_fill_lowest(struct ovl_readdir_data *rdd, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_lowest() argument 253 ovl_fill_merge(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_merge() argument 529 ovl_fill_plain(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_plain() argument 649 ovl_fill_real(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_real() argument 1028 ovl_check_d_type(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_check_d_type() argument [all...] |
/kernel/linux/linux-6.6/fs/overlayfs/ |
H A D | readdir.c | 145 u64 ino, unsigned int d_type) in ovl_cache_entry_new() 157 p->type = d_type; in ovl_cache_entry_new() 166 if (d_type == DT_CHR) { in ovl_cache_entry_new() 175 unsigned int d_type) in ovl_cache_entry_add_rb() 184 p = ovl_cache_entry_new(rdd, name, len, ino, d_type); in ovl_cache_entry_add_rb() 199 loff_t offset, u64 ino, unsigned int d_type) in ovl_fill_lowest() 207 p = ovl_cache_entry_new(rdd, name, namelen, ino, d_type); in ovl_fill_lowest() 255 unsigned int d_type) in ovl_fill_merge() 262 return ovl_cache_entry_add_rb(rdd, name, namelen, ino, d_type); in ovl_fill_merge() 264 return ovl_fill_lowest(rdd, name, namelen, offset, ino, d_type); in ovl_fill_merge() 143 ovl_cache_entry_new(struct ovl_readdir_data *rdd, const char *name, int len, u64 ino, unsigned int d_type) ovl_cache_entry_new() argument 173 ovl_cache_entry_add_rb(struct ovl_readdir_data *rdd, const char *name, int len, u64 ino, unsigned int d_type) ovl_cache_entry_add_rb() argument 197 ovl_fill_lowest(struct ovl_readdir_data *rdd, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_lowest() argument 253 ovl_fill_merge(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_merge() argument 533 ovl_fill_plain(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_plain() argument 654 ovl_fill_real(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_real() argument 1036 ovl_check_d_type(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_check_d_type() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | genelf.c | 184 d->d_type = ELF_T_BYTE; in jit_add_eh_frame_info() 218 d->d_type = ELF_T_BYTE; in jit_add_eh_frame_info() 320 d->d_type = ELF_T_BYTE; in jit_write_elf() 366 d->d_type = ELF_T_BYTE; in jit_write_elf() 402 d->d_type = ELF_T_SYM; in jit_write_elf() 445 d->d_type = ELF_T_BYTE; in jit_write_elf() 487 d->d_type = ELF_T_BYTE; in jit_write_elf()
|
/kernel/linux/linux-5.10/fs/ufs/ |
H A D | util.h | 166 de->d_u.d_44.d_type = DT_SOCK; in ufs_set_de_type() 169 de->d_u.d_44.d_type = DT_LNK; in ufs_set_de_type() 172 de->d_u.d_44.d_type = DT_REG; in ufs_set_de_type() 175 de->d_u.d_44.d_type = DT_BLK; in ufs_set_de_type() 178 de->d_u.d_44.d_type = DT_DIR; in ufs_set_de_type() 181 de->d_u.d_44.d_type = DT_CHR; in ufs_set_de_type() 184 de->d_u.d_44.d_type = DT_FIFO; in ufs_set_de_type() 187 de->d_u.d_44.d_type = DT_UNKNOWN; in ufs_set_de_type()
|
/kernel/linux/linux-6.6/fs/ufs/ |
H A D | util.h | 160 de->d_u.d_44.d_type = DT_SOCK; in ufs_set_de_type() 163 de->d_u.d_44.d_type = DT_LNK; in ufs_set_de_type() 166 de->d_u.d_44.d_type = DT_REG; in ufs_set_de_type() 169 de->d_u.d_44.d_type = DT_BLK; in ufs_set_de_type() 172 de->d_u.d_44.d_type = DT_DIR; in ufs_set_de_type() 175 de->d_u.d_44.d_type = DT_CHR; in ufs_set_de_type() 178 de->d_u.d_44.d_type = DT_FIFO; in ufs_set_de_type() 181 de->d_u.d_44.d_type = DT_UNKNOWN; in ufs_set_de_type()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
H A D | file_merge.c | 46 int d_type) in allocate_entry() 61 data->file_type = d_type; in allocate_entry() 211 unsigned int d_type) in hmdfs_actor_merge() 233 cache_entry = allocate_entry(dentry_name, dentry_len, d_type); in hmdfs_actor_merge() 243 if (d_type == DT_DIR && insert_res == DT_DIR) { in hmdfs_actor_merge() 245 } else if (d_type == DT_DIR && in hmdfs_actor_merge() 253 } else if ((d_type == DT_REG || d_type == DT_LNK) && insert_res > 0) { in hmdfs_actor_merge() 265 ino, d_type); in hmdfs_actor_merge() 272 if (ret && d_type in hmdfs_actor_merge() 45 allocate_entry(const char *name, int namelen, int d_type) allocate_entry() argument 209 hmdfs_actor_merge(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) hmdfs_actor_merge() argument [all...] |
/kernel/linux/linux-6.6/fs/hmdfs/ |
H A D | file_merge.c | 46 int d_type) in allocate_entry() 61 data->file_type = d_type; in allocate_entry() 211 unsigned int d_type) in hmdfs_actor_merge() 239 cache_entry = allocate_entry(dentry_name, dentry_len, d_type); in hmdfs_actor_merge() 249 if (d_type == DT_DIR && insert_res == DT_DIR) { in hmdfs_actor_merge() 251 } else if (d_type == DT_DIR && in hmdfs_actor_merge() 259 } else if ((d_type == DT_REG || d_type == DT_LNK) && insert_res > 0) { in hmdfs_actor_merge() 271 ino, d_type); in hmdfs_actor_merge() 277 if (!ret && d_type in hmdfs_actor_merge() 45 allocate_entry(const char *name, int namelen, int d_type) allocate_entry() argument 209 hmdfs_actor_merge(struct dir_context *ctx, const char *name, int namelen, long long offset, unsigned long long ino, unsigned int d_type) hmdfs_actor_merge() argument [all...] |