/fs/coda/ |
D | dir.c | 44 const char *name = entry->d_name.name; in coda_lookup() 45 size_t length = entry->d_name.len; in coda_lookup() 138 const char *name=de->d_name.name; in coda_create() 139 int length=de->d_name.len; in coda_create() 171 const char *name = de->d_name.name; in coda_mkdir() 172 int len = de->d_name.len; in coda_mkdir() 206 const char * name = de->d_name.name; in coda_link() 207 int len = de->d_name.len; in coda_link() 231 const char *name = de->d_name.name; in coda_symlink() 232 int len = de->d_name.len; in coda_symlink() [all …]
|
/fs/ocfs2/ |
D | namei.c | 106 trace_ocfs2_lookup(dir, dentry, dentry->d_name.len, in ocfs2_lookup() 107 dentry->d_name.name, in ocfs2_lookup() 110 if (dentry->d_name.len > OCFS2_MAX_FILENAME_LEN) { in ocfs2_lookup() 123 status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name, in ocfs2_lookup() 124 dentry->d_name.len, &blkno); in ocfs2_lookup() 254 trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name, in ocfs2_mknod() 286 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, in ocfs2_mknod() 287 dentry->d_name.len); in ocfs2_mknod() 293 dentry->d_name.name, in ocfs2_mknod() 294 dentry->d_name.len, &lookup); in ocfs2_mknod() [all …]
|
D | dcache.c | 49 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, in ocfs2_dentry_revalidate() 50 dentry->d_name.name); in ocfs2_dentry_revalidate() 62 trace_ocfs2_dentry_revalidate_negative(dentry->d_name.len, in ocfs2_dentry_revalidate() 63 dentry->d_name.name, in ocfs2_dentry_revalidate() 164 trace_ocfs2_find_local_alias(dentry->d_name.len, in ocfs2_find_local_alias() 165 dentry->d_name.name); in ocfs2_find_local_alias() 220 trace_ocfs2_dentry_attach_lock(dentry->d_name.len, dentry->d_name.name, in ocfs2_dentry_attach_lock()
|
/fs/jffs2/ |
D | dir.c | 86 if (target->d_name.len > JFFS2_MAX_NAME_LEN) in jffs2_lookup() 92 nhash = full_name_hash(NULL, target->d_name.name, target->d_name.len); in jffs2_lookup() 100 strlen(fd_list->name) == target->d_name.len && in jffs2_lookup() 101 !strncmp(fd_list->name, target->d_name.name, target->d_name.len)) { in jffs2_lookup() 200 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); in jffs2_create() 232 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_unlink() 233 dentry->d_name.len, dead_f, now); in jffs2_unlink() 264 …ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now… in jffs2_link() 307 namelen = dentry->d_name.len; in jffs2_symlink() 371 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_symlink() [all …]
|
/fs/orangefs/ |
D | namei.c | 43 strncpy(new_op->upcall.req.create.d_name, in orangefs_create() 44 dentry->d_name.name, ORANGEFS_NAME_MAX - 1); in orangefs_create() 123 if (dentry->d_name.len > (ORANGEFS_NAME_MAX - 1)) in orangefs_lookup() 139 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup() 145 new_op->upcall.req.lookup.d_name, in orangefs_lookup() 194 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink() 249 dentry->d_name.name, in orangefs_symlink() 324 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir() 325 dentry->d_name.name, ORANGEFS_NAME_MAX - 1); in orangefs_mkdir() 405 old_dentry->d_name.name, in orangefs_rename() [all …]
|
D | upcall.h | 31 char d_name[ORANGEFS_NAME_MAX]; member 37 char d_name[ORANGEFS_NAME_MAX]; member 60 char d_name[ORANGEFS_NAME_MAX]; member 66 char d_name[ORANGEFS_NAME_MAX]; member
|
/fs/reiserfs/ |
D | namei.c | 360 if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup() 367 reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_lookup() 652 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_create() 677 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create() 678 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_create() 732 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mknod() 763 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mknod() 764 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_mknod() 823 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mkdir() 860 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mkdir() [all …]
|
D | dir.c | 142 char *d_name; in reiserfs_readdir_inode() local 150 d_name = B_I_DEH_ENTRY_FILE_NAME(bh, ih, deh); in reiserfs_readdir_inode() 153 d_name + d_reclen > bh->b_data + bh->b_size) { in reiserfs_readdir_inode() 163 if (!d_name[d_reclen - 1]) in reiserfs_readdir_inode() 164 d_reclen = strlen(d_name); in reiserfs_readdir_inode() 202 memcpy(local_buf, d_name, d_reclen); in reiserfs_readdir_inode()
|
/fs/efivarfs/ |
D | inode.c | 77 if (!efivarfs_valid_name(dentry->d_name.name, dentry->d_name.len)) in efivarfs_create() 85 namelen = dentry->d_name.len - EFI_VARIABLE_GUID_LEN - 1; in efivarfs_create() 87 err = guid_parse(dentry->d_name.name + namelen + 1, &var->var.VendorGuid); in efivarfs_create() 92 dentry->d_name.name, namelen)) in efivarfs_create() 102 var->var.VariableName[i] = dentry->d_name.name[i]; in efivarfs_create()
|
/fs/fat/ |
D | namei_msdos.c | 210 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_lookup() 276 err = msdos_format_name(dentry->d_name.name, dentry->d_name.len, in msdos_create() 280 is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.'); in msdos_create() 321 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_rmdir() 353 err = msdos_format_name(dentry->d_name.name, dentry->d_name.len, in msdos_mkdir() 357 is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.'); in msdos_mkdir() 409 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_unlink() 609 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename() 610 old_dentry->d_name.len, old_msdos_name, in msdos_rename() 614 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename() [all …]
|
/fs/ |
D | readdir.c | 134 char d_name[1]; member 164 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 170 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir() 211 char d_name[1]; member 229 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() 257 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir() 316 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() 339 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir64() 391 char d_name[1]; member 422 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir() [all …]
|
D | dcache.c | 249 const unsigned char *cs = READ_ONCE(dentry->d_name.name); in dentry_cmp() 264 return container_of(dentry->d_name.name, struct external_name, name[0]); in external_name() 283 return dentry->d_name.name != dentry->d_iname; in dname_external() 289 name->name = dentry->d_name; in take_dentry_name_snapshot() 294 dentry->d_name.len + 1); in take_dentry_name_snapshot() 487 b = d_hash(dentry->d_name.hash); in ___d_drop() 1739 dentry->d_name.len = name->len; in __d_alloc() 1740 dentry->d_name.hash = name->hash; in __d_alloc() 1745 smp_store_release(&dentry->d_name.name, dname); /* ^^^ */ in __d_alloc() 2196 if (dentry->d_name.len != name->len) in d_same_name() [all …]
|
/fs/hfsplus/ |
D | dir.c | 48 &dentry->d_name); in hfsplus_lookup() 324 src_dir, &src_dentry->d_name, in hfsplus_link() 335 &src_dentry->d_name, inode); in hfsplus_link() 342 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 377 dir, &dentry->d_name, in hfsplus_unlink() 385 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); in hfsplus_unlink() 425 res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_rmdir() 453 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_symlink() 457 res = hfsplus_init_security(inode, dir, &dentry->d_name); in hfsplus_symlink() 462 hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_symlink() [all …]
|
/fs/hfs/ |
D | dir.c | 31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup() 198 inode = hfs_new_inode(dir, &dentry->d_name, mode); in hfs_create() 202 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create() 227 inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode); in hfs_mkdir() 231 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_mkdir() 261 res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name); in hfs_remove() 299 old_dir, &old_dentry->d_name, in hfs_rename() 300 new_dir, &new_dentry->d_name); in hfs_rename() 304 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
/fs/nfs/ |
D | nfstrace.h | 309 __string(name, dentry->d_name.name) 316 __assign_str(name, dentry->d_name.name); 353 __string(name, dentry->d_name.name) 361 __assign_str(name, dentry->d_name.name); 448 __string(name, ctx->dentry->d_name.name) 456 __assign_str(name, ctx->dentry->d_name.name); 486 __string(name, ctx->dentry->d_name.name) 495 __assign_str(name, ctx->dentry->d_name.name); 524 __string(name, dentry->d_name.name) 531 __assign_str(name, dentry->d_name.name); [all …]
|
/fs/hpfs/ |
D | namei.c | 25 const unsigned char *name = dentry->d_name.name; in hpfs_mkdir() 26 unsigned len = dentry->d_name.len; in hpfs_mkdir() 133 const unsigned char *name = dentry->d_name.name; in hpfs_create() 134 unsigned len = dentry->d_name.len; in hpfs_create() 220 const unsigned char *name = dentry->d_name.name; in hpfs_mknod() 221 unsigned len = dentry->d_name.len; in hpfs_mknod() 294 const unsigned char *name = dentry->d_name.name; in hpfs_symlink() 295 unsigned len = dentry->d_name.len; in hpfs_symlink() 373 const unsigned char *name = dentry->d_name.name; in hpfs_unlink() 374 unsigned len = dentry->d_name.len; in hpfs_unlink() [all …]
|
/fs/ext2/ |
D | namei.c | 62 if (dentry->d_name.len > EXT2_NAME_LEN) in ext2_lookup() 65 res = ext2_inode_by_name(dir, &dentry->d_name, &ino); in ext2_lookup() 112 inode = ext2_new_inode(dir, mode, &dentry->d_name); in ext2_create() 143 inode = ext2_new_inode (dir, mode, &dentry->d_name); in ext2_mknod() 169 inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name); in ext2_symlink() 239 inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); in ext2_mkdir() 285 de = ext2_find_entry(dir, &dentry->d_name, &page); in ext2_unlink() 341 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page); in ext2_rename() 362 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, &new_page); in ext2_rename()
|
/fs/afs/ |
D | dir.c | 577 .name = dentry->d_name, in afs_do_lookup_one() 774 cookie->name = dentry->d_name; in afs_do_lookup() 901 if (dentry->d_name.len > 4) { in afs_lookup_atsys() 902 memcpy(p, dentry->d_name.name, dentry->d_name.len - 4); in afs_lookup_atsys() 903 p += dentry->d_name.len - 4; in afs_lookup_atsys() 914 len = dentry->d_name.len - 4 + strlen(name); in afs_lookup_atsys() 957 if (dentry->d_name.len >= AFSNAMEMAX) { in afs_lookup() 980 if (dentry->d_name.len >= 4 && in afs_lookup() 981 dentry->d_name.name[dentry->d_name.len - 4] == '@' && in afs_lookup() 982 dentry->d_name.name[dentry->d_name.len - 3] == 's' && in afs_lookup() [all …]
|
/fs/bfs/ |
D | dir.c | 113 err = bfs_add_entry(dir, &dentry->d_name, inode->i_ino); in bfs_create() 133 if (dentry->d_name.len > BFS_NAMELEN) in bfs_lookup() 137 bh = bfs_find_entry(dir, &dentry->d_name, &de); in bfs_lookup() 155 err = bfs_add_entry(dir, &new->d_name, inode->i_ino); in bfs_link() 178 bh = bfs_find_entry(dir, &dentry->d_name, &de); in bfs_unlink() 223 old_bh = bfs_find_entry(old_dir, &old_dentry->d_name, &old_de); in bfs_rename() 230 new_bh = bfs_find_entry(new_dir, &new_dentry->d_name, &new_de); in bfs_rename() 237 error = bfs_add_entry(new_dir, &new_dentry->d_name, in bfs_rename()
|
/fs/overlayfs/ |
D | dir.c | 157 d = lookup_one_len(dentry->d_name.name, dentry->d_parent, in ovl_mkdir_real() 158 dentry->d_name.len); in ovl_mkdir_real() 331 lookup_one_len(dentry->d_name.name, in ovl_create_upper() 333 dentry->d_name.len), in ovl_create_upper() 483 upper = lookup_one_len(dentry->d_name.name, upperdir, in ovl_create_over_whiteout() 484 dentry->d_name.len); in ovl_create_over_whiteout() 609 attr->mode, &dentry->d_name, in ovl_create_or_link() 782 upper = lookup_one_len(dentry->d_name.name, upperdir, in ovl_remove_and_whiteout() 783 dentry->d_name.len); in ovl_remove_and_whiteout() 829 upper = lookup_one_len(dentry->d_name.name, upperdir, in ovl_remove_upper() [all …]
|
/fs/autofs/ |
D | waitq.c | 197 len += tmp->d_name.len + 1; in autofs_getpath() 208 p = buf + len - dentry->d_name.len; in autofs_getpath() 209 strncpy(p, dentry->d_name.name, dentry->d_name.len); in autofs_getpath() 213 p -= tmp->d_name.len; in autofs_getpath() 214 strncpy(p, tmp->d_name.name, tmp->d_name.len); in autofs_getpath() 330 new = d_lookup(parent, &dentry->d_name); in validate_request() 500 de = d_lookup(dentry->d_parent, &dentry->d_name); in autofs_wait()
|
/fs/freevxfs/ |
D | vxfs_lookup.c | 84 const char *name = dp->d_name.name; in vxfs_find_entry() 85 int namelen = dp->d_name.len; in vxfs_find_entry() 128 if (!memcmp(name, de->d_name, namelen)) { in vxfs_find_entry() 192 if (dp->d_name.len > VXFS_NAMELEN) in vxfs_lookup() 277 rc = dir_emit(ctx, de->d_name, in vxfs_readdir()
|
/fs/ufs/ |
D | dir.c | 42 return !memcmp(name, de->d_name, len); in ufs_match() 308 const unsigned char *name = dentry->d_name.name; in ufs_add_link() 309 int namelen = dentry->d_name.len; in ufs_add_link() 389 memcpy(de->d_name, name, namelen + 1); in ufs_add_link() 468 UFSD("filldir(%s,%u)\n", de->d_name, in ufs_readdir() 475 if (!dir_emit(ctx, de->d_name, in ufs_readdir() 512 ufs_get_de_namlen(sb, de), de->d_name); in ufs_delete_entry() 572 strcpy (de->d_name, "."); in ufs_make_empty() 579 strcpy (de->d_name, ".."); in ufs_make_empty() 619 if (de->d_name[0] != '.') in ufs_empty_dir() [all …]
|
/fs/isofs/ |
D | namei.c | 25 return dentry->d_name.len != dlen || memcmp(dentry->d_name.name, compare, dlen); in isofs_cmp() 26 return dentry->d_op->d_compare(NULL, dentry->d_name.len, dentry->d_name.name, &qstr); in isofs_cmp()
|
/fs/omfs/ |
D | dir.c | 114 const char *name = dentry->d_name.name; in omfs_add_link() 115 int namelen = dentry->d_name.len; in omfs_add_link() 160 const char *name = dentry->d_name.name; in omfs_delete_entry() 161 int namelen = dentry->d_name.len; in omfs_delete_entry() 299 if (dentry->d_name.len > OMFS_NAMELEN) in omfs_lookup() 302 bh = omfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len); in omfs_lookup()
|