Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 25 of 136) sorted by relevance

123456

/fs/coda/
Ddir.c44 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/
Dnamei.c106 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()
251 trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name, in ocfs2_mknod()
283 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, in ocfs2_mknod()
284 dentry->d_name.len); in ocfs2_mknod()
290 dentry->d_name.name, in ocfs2_mknod()
291 dentry->d_name.len, &lookup); in ocfs2_mknod()
[all …]
Ddcache.c49 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/
Ddir.c86 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/
Dreaddir.c134 char d_name[1]; member
161 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir()
167 __copy_to_user(dirent->d_name, name, namlen) || in fillonedir()
168 __put_user(0, dirent->d_name + namlen)) in fillonedir()
207 char d_name[1]; member
225 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir()
253 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir()
315 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64()
338 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir64()
400 char d_name[1]; member
[all …]
Ddcache.c249 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()
1717 dentry->d_name.len = name->len; in __d_alloc()
1718 dentry->d_name.hash = name->hash; in __d_alloc()
1723 smp_store_release(&dentry->d_name.name, dname); /* ^^^ */ in __d_alloc()
2174 if (dentry->d_name.len != name->len) in d_same_name()
[all …]
/fs/orangefs/
Dnamei.c43 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 …]
/fs/reiserfs/
Dnamei.c360 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()
731 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mknod()
762 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mknod()
763 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_mknod()
821 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mkdir()
858 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mkdir()
[all …]
Ddir.c142 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/nfs/
Dnfstrace.h250 __string(name, dentry->d_name.name)
257 __assign_str(name, dentry->d_name.name);
294 __string(name, dentry->d_name.name)
302 __assign_str(name, dentry->d_name.name);
389 __string(name, ctx->dentry->d_name.name)
397 __assign_str(name, ctx->dentry->d_name.name);
427 __string(name, ctx->dentry->d_name.name)
436 __assign_str(name, ctx->dentry->d_name.name);
465 __string(name, dentry->d_name.name)
472 __assign_str(name, dentry->d_name.name);
[all …]
/fs/efivarfs/
Dinode.c76 if (!efivarfs_valid_name(dentry->d_name.name, dentry->d_name.len)) in efivarfs_create()
84 namelen = dentry->d_name.len - EFI_VARIABLE_GUID_LEN - 1; in efivarfs_create()
86 err = guid_parse(dentry->d_name.name + namelen + 1, &var->var.VendorGuid); in efivarfs_create()
91 dentry->d_name.name, namelen)) in efivarfs_create()
101 var->var.VariableName[i] = dentry->d_name.name[i]; in efivarfs_create()
/fs/afs/
Ddir.c568 .name = dentry->d_name, in afs_do_lookup_one()
660 cookie->name = dentry->d_name; in afs_do_lookup()
866 if (dentry->d_name.len > 4) { in afs_lookup_atsys()
867 memcpy(p, dentry->d_name.name, dentry->d_name.len - 4); in afs_lookup_atsys()
868 p += dentry->d_name.len - 4; in afs_lookup_atsys()
879 len = dentry->d_name.len - 4 + strlen(name); in afs_lookup_atsys()
922 if (dentry->d_name.len >= AFSNAMEMAX) { in afs_lookup()
945 if (dentry->d_name.len >= 4 && in afs_lookup()
946 dentry->d_name.name[dentry->d_name.len - 4] == '@' && in afs_lookup()
947 dentry->d_name.name[dentry->d_name.len - 3] == 's' && in afs_lookup()
[all …]
Ddir_silly.c38 afs_fs_rename(&fc, old->d_name.name, in afs_do_silly_rename()
39 dvnode, new->d_name.name, in afs_do_silly_rename()
58 afs_edit_dir_remove(dvnode, &old->d_name, in afs_do_silly_rename()
61 afs_edit_dir_add(dvnode, &new->d_name, in afs_do_silly_rename()
163 yfs_fs_remove_file2(&fc, vnode, dentry->d_name.name, in afs_do_silly_unlink()
171 afs_fs_remove(&fc, vnode, dentry->d_name.name, false, &scb[0]); in afs_do_silly_unlink()
186 afs_edit_dir_remove(dvnode, &dentry->d_name, in afs_do_silly_unlink()
211 alias = d_alloc_parallel(dentry->d_parent, &dentry->d_name, &wq); in afs_silly_iput()
Ddynroot.c21 const char *name = dentry->d_name.name; in afs_probe_cell_name()
22 size_t len = dentry->d_name.len; in afs_probe_cell_name()
142 if (dentry->d_name.len >= AFSNAMEMAX) { in afs_dynroot_lookup()
147 if (dentry->d_name.len == 5 && in afs_dynroot_lookup()
148 memcmp(dentry->d_name.name, "@cell", 5) == 0) in afs_dynroot_lookup()
/fs/fat/
Dnamei_msdos.c210 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/hfsplus/
Ddir.c48 &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/
Ddir.c31 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/sdcardfs/
Dinode.c74 if (!check_caller_access_to_name(dir, &dentry->d_name)) { in sdcardfs_create()
118 fixup_lower_ownership(dentry, dentry->d_name.name); in sdcardfs_create()
143 if (!check_caller_access_to_name(dir, &dentry->d_name)) { in sdcardfs_unlink()
223 if (!check_caller_access_to_name(dir, &dentry->d_name)) { in sdcardfs_mkdir()
304 fixup_lower_ownership(dentry, dentry->d_name.name); in sdcardfs_mkdir()
306 if ((!sbi->options.multiuser) && (qstr_case_eq(&dentry->d_name, &q_obb)) in sdcardfs_mkdir()
313 && (qstr_case_eq(&dentry->d_name, &q_data)))) { in sdcardfs_mkdir()
319 lower_path.dentry->d_name.name, in sdcardfs_mkdir()
327 lower_path.dentry->d_name.name, in sdcardfs_mkdir()
355 if (!check_caller_access_to_name(dir, &dentry->d_name)) { in sdcardfs_rmdir()
[all …]
/fs/ext2/
Dnamei.c61 if (dentry->d_name.len > EXT2_NAME_LEN) in ext2_lookup()
64 ino = ext2_inode_by_name(dir, &dentry->d_name); in ext2_lookup()
104 inode = ext2_new_inode(dir, mode, &dentry->d_name); in ext2_create()
135 inode = ext2_new_inode (dir, mode, &dentry->d_name); in ext2_mknod()
163 inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name); in ext2_symlink()
233 inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); in ext2_mkdir()
279 de = ext2_find_entry (dir, &dentry->d_name, &page); in ext2_unlink()
335 old_de = ext2_find_entry (old_dir, &old_dentry->d_name, &old_page); in ext2_rename()
357 new_de = ext2_find_entry (new_dir, &new_dentry->d_name, &new_page); in ext2_rename()
/fs/hpfs/
Dnamei.c25 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/overlayfs/
Ddir.c134 d = lookup_one_len(dentry->d_name.name, dentry->d_parent, in ovl_mkdir_real()
135 dentry->d_name.len); in ovl_mkdir_real()
304 lookup_one_len(dentry->d_name.name, in ovl_create_upper()
306 dentry->d_name.len), in ovl_create_upper()
456 upper = lookup_one_len(dentry->d_name.name, upperdir, in ovl_create_over_whiteout()
457 dentry->d_name.len); in ovl_create_over_whiteout()
566 attr->mode, &dentry->d_name, in ovl_create_or_link()
738 upper = lookup_one_len(dentry->d_name.name, upperdir, in ovl_remove_and_whiteout()
739 dentry->d_name.len); in ovl_remove_and_whiteout()
785 upper = lookup_one_len(dentry->d_name.name, upperdir, in ovl_remove_upper()
[all …]
/fs/bfs/
Ddir.c113 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/autofs/
Dwaitq.c196 len += tmp->d_name.len + 1; in autofs_getpath()
207 p = buf + len - dentry->d_name.len; in autofs_getpath()
208 strncpy(p, dentry->d_name.name, dentry->d_name.len); in autofs_getpath()
212 p -= tmp->d_name.len; in autofs_getpath()
213 strncpy(p, tmp->d_name.name, tmp->d_name.len); in autofs_getpath()
329 new = d_lookup(parent, &dentry->d_name); in validate_request()
499 de = d_lookup(dentry->d_parent, &dentry->d_name); in autofs_wait()
/fs/freevxfs/
Dvxfs_lookup.c84 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/
Ddir.c42 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 …]

123456