Home
last modified time | relevance | path

Searched refs:qstr (Results 1 – 142 of 142) sorted by relevance

/linux-4.4.14/fs/hpfs/
Ddentry.c15 static int hpfs_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in hpfs_hash_dentry() argument
19 unsigned l = qstr->len; in hpfs_hash_dentry()
21 if (l == 1) if (qstr->name[0]=='.') goto x; in hpfs_hash_dentry()
22 if (l == 2) if (qstr->name[0]=='.' || qstr->name[1]=='.') goto x; in hpfs_hash_dentry()
23 hpfs_adjust_length(qstr->name, &l); in hpfs_hash_dentry()
31 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); in hpfs_hash_dentry()
32 qstr->hash = end_name_hash(hash); in hpfs_hash_dentry()
38 unsigned int len, const char *str, const struct qstr *name) in hpfs_compare_dentry()
/linux-4.4.14/fs/gfs2/
Ddir.h30 const struct qstr *filename,
32 extern int gfs2_dir_check(struct inode *dir, const struct qstr *filename,
34 extern int gfs2_dir_add(struct inode *inode, const struct qstr *filename,
45 extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename,
51 const struct qstr *filename,
63 static inline void gfs2_str2qstr(struct qstr *name, const char *fname) in gfs2_str2qstr()
71 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent()
83 extern struct qstr gfs2_qdot;
84 extern struct qstr gfs2_qdotdot;
Ddir.c86 struct qstr gfs2_qdot __read_mostly;
87 struct qstr gfs2_qdotdot __read_mostly;
90 const struct qstr *name, void *opaque);
407 const struct qstr *name, int ret) in __gfs2_dirent_find()
418 const struct qstr *name, in gfs2_dirent_find()
425 const struct qstr *name, in gfs2_dirent_prev()
436 const struct qstr *name, in gfs2_dirent_last()
447 const struct qstr *name, in gfs2_dirent_find_space()
467 const struct qstr *name, in gfs2_dirent_gather()
538 const struct qstr *name, in gfs2_dirent_scan()
[all …]
Ddentry.c106 static int gfs2_dhash(const struct dentry *dentry, struct qstr *str) in gfs2_dhash()
Dinode.c252 struct qstr qstr; in gfs2_lookup_simple() local
254 gfs2_str2qstr(&qstr, name); in gfs2_lookup_simple()
255 inode = gfs2_lookupi(dip, &qstr, 1); in gfs2_lookup_simple()
283 struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, in gfs2_lookupi()
336 static int create_ok(struct gfs2_inode *dip, const struct qstr *name, in create_ok()
520 static int link_dinode(struct gfs2_inode *dip, const struct qstr *name, in link_dinode()
589 const struct qstr *name = &dentry->d_name; in gfs2_create_inode()
1020 static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, in gfs2_unlink_ok()
Dinode.h106 extern struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
Dops_fstype.c548 struct qstr name; in gfs2_jindex_hold()
/linux-4.4.14/fs/autofs4/
Dwaitq.c226 autofs4_find_wait(struct autofs_sb_info *sbi, struct qstr *qstr) in autofs4_find_wait() argument
231 if (wq->name.hash == qstr->hash && in autofs4_find_wait()
232 wq->name.len == qstr->len && in autofs4_find_wait()
234 !memcmp(wq->name.name, qstr->name, qstr->len)) in autofs4_find_wait()
250 struct qstr *qstr, in validate_request() argument
260 wq = autofs4_find_wait(sbi, qstr); in validate_request()
294 wq = autofs4_find_wait(sbi, qstr); in validate_request()
347 struct qstr qstr; in autofs4_wait() local
388 qstr.len = sprintf(name, "%p", dentry); in autofs4_wait()
390 qstr.len = autofs4_getpath(sbi, dentry, &name); in autofs4_wait()
[all …]
Droot.c162 struct qstr *name = &dentry->d_name; in autofs4_lookup_active()
175 struct qstr *qstr; in autofs4_lookup_active() local
186 qstr = &active->d_name; in autofs4_lookup_active()
193 if (qstr->len != len) in autofs4_lookup_active()
195 if (memcmp(qstr->name, str, len)) in autofs4_lookup_active()
217 struct qstr *name = &dentry->d_name; in autofs4_lookup_expiring()
230 struct qstr *qstr; in autofs4_lookup_expiring() local
246 qstr = &expiring->d_name; in autofs4_lookup_expiring()
253 if (qstr->len != len) in autofs4_lookup_expiring()
255 if (memcmp(qstr->name, str, len)) in autofs4_lookup_expiring()
Dautofs_i.h93 struct qstr name;
/linux-4.4.14/fs/affs/
Dnamei.c16 static int affs_hash_dentry(const struct dentry *, struct qstr *);
18 unsigned int len, const char *str, const struct qstr *name);
20 static int affs_intl_hash_dentry(const struct dentry *, struct qstr *);
22 unsigned int len, const char *str, const struct qstr *name);
64 __affs_hash_dentry(struct qstr *qstr, toupper_t toupper, bool notruncate) in __affs_hash_dentry() argument
66 const u8 *name = qstr->name; in __affs_hash_dentry()
71 retval = affs_check_name(qstr->name, qstr->len, notruncate); in __affs_hash_dentry()
76 len = min(qstr->len, AFFSNAMEMAX); in __affs_hash_dentry()
79 qstr->hash = end_name_hash(hash); in __affs_hash_dentry()
85 affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in affs_hash_dentry() argument
[all …]
/linux-4.4.14/fs/hfsplus/
Dxattr_security.c67 const struct qstr *qstr) in hfsplus_init_security() argument
69 return security_inode_init_security(inode, dir, qstr, in hfsplus_init_security()
75 const struct qstr *qstr) in hfsplus_init_inode_security() argument
81 err = hfsplus_init_security(inode, dir, qstr); in hfsplus_init_inode_security()
Dxattr.h38 const struct qstr *qstr);
41 const struct qstr *qstr);
Dhfsplus_fs.h447 u32 parent, struct qstr *str);
453 int hfsplus_create_cat(u32 cnid, struct inode *dir, struct qstr *str,
455 int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str);
456 int hfsplus_rename_cat(u32 cnid, struct inode *src_dir, struct qstr *src_name,
457 struct inode *dst_dir, struct qstr *dst_name);
521 int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str);
524 const char *str, const struct qstr *name);
Dcatalog.c43 hfsplus_btree_key *key, u32 parent, struct qstr *str) in hfsplus_cat_build_key()
177 u32 parentid, struct qstr *str) in hfsplus_fill_cat_thread()
253 struct qstr *str, struct inode *inode) in hfsplus_create_cat()
321 int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str) in hfsplus_delete_cat()
415 struct inode *src_dir, struct qstr *src_name, in hfsplus_rename_cat()
416 struct inode *dst_dir, struct qstr *dst_name) in hfsplus_rename_cat()
Ddir.c87 struct qstr str; in hfsplus_lookup()
301 struct qstr str; in hfsplus_link()
357 struct qstr str; in hfsplus_unlink()
Dunicode.c337 int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str) in hfsplus_hash_dentry()
389 unsigned int len, const char *str, const struct qstr *name) in hfsplus_compare_dentry()
Dsuper.c378 struct qstr str; in hfsplus_fill_super()
/linux-4.4.14/include/linux/
Ddcache.h44 struct qstr { struct
114 struct qstr d_name;
153 int (*d_hash)(const struct dentry *, struct qstr *);
155 unsigned int, const char *, const struct qstr *);
247 extern struct dentry * d_alloc(struct dentry *, const struct qstr *);
248 extern struct dentry * d_alloc_pseudo(struct super_block *, const struct qstr *);
250 extern struct dentry * d_add_ci(struct dentry *, struct inode *, struct qstr *);
310 extern void dentry_update_name_case(struct dentry *, struct qstr *);
318 extern struct dentry *d_lookup(const struct dentry *, const struct qstr *);
319 extern struct dentry *d_hash_and_lookup(struct dentry *, struct qstr *);
[all …]
Dnfs_xdr.h409 const struct qstr * name;
620 struct qstr name;
637 const struct qstr *old_name;
638 const struct qstr *new_name;
929 const struct qstr * name;
974 const struct qstr * name;
991 const struct qstr * name;
1118 const struct qstr *name;
1144 const struct qstr *name;
1517 int (*lookup) (struct inode *, struct qstr *,
[all …]
Dsecurity.h46 struct qstr;
235 struct qstr *name, void **ctx,
241 const struct qstr *qstr,
244 const struct qstr *qstr, const char **name,
575 struct qstr *name, in security_dentry_init_security()
585 const struct qstr *qstr, in security_inode_init_security() argument
594 const struct qstr *qstr, in security_old_inode_init_security() argument
Dlsm_hooks.h1355 struct qstr *name, void **ctx,
1382 const struct qstr *qstr,
/linux-4.4.14/fs/hfs/
Dhfs_fs.h180 extern int hfs_cat_create(u32, struct inode *, struct qstr *, struct inode *);
181 extern int hfs_cat_delete(u32, struct inode *, struct qstr *);
182 extern int hfs_cat_move(u32, struct inode *, struct qstr *,
183 struct inode *, struct qstr *);
184 extern void hfs_cat_build_key(struct super_block *, btree_key *, u32, struct qstr *);
203 extern struct inode *hfs_new_inode(struct inode *, struct qstr *, umode_t);
232 extern int hfs_hash_dentry(const struct dentry *, struct qstr *);
236 unsigned int len, const char *str, const struct qstr *name);
239 extern void hfs_asc2mac(struct super_block *, struct hfs_name *, struct qstr *);
Dstring.c54 int hfs_hash_dentry(const struct dentry *dentry, struct qstr *this) in hfs_hash_dentry()
96 unsigned int len, const char *str, const struct qstr *name) in hfs_compare_dentry()
Dcatalog.c23 void hfs_cat_build_key(struct super_block *sb, btree_key *key, u32 parent, struct qstr *name) in hfs_cat_build_key()
67 u32 parentid, struct qstr *name) in hfs_cat_build_thread()
82 int hfs_cat_create(u32 cnid, struct inode *dir, struct qstr *str, struct inode *inode) in hfs_cat_create()
213 int hfs_cat_delete(u32 cnid, struct inode *dir, struct qstr *str) in hfs_cat_delete()
279 int hfs_cat_move(u32 cnid, struct inode *src_dir, struct qstr *src_name, in hfs_cat_move()
280 struct inode *dst_dir, struct qstr *dst_name) in hfs_cat_move()
Dtrans.c97 void hfs_asc2mac(struct super_block *sb, struct hfs_name *out, struct qstr *in) in hfs_asc2mac()
Dinode.c181 struct inode *hfs_new_inode(struct inode *dir, struct qstr *name, umode_t mode) in hfs_new_inode()
/linux-4.4.14/fs/adfs/
Ddir.c104 adfs_match(struct qstr *name, struct object_info *obj) in adfs_match()
129 adfs_dir_lookup_byname(struct inode *inode, struct qstr *name, struct object_info *obj) in adfs_dir_lookup_byname()
194 adfs_hash(const struct dentry *parent, struct qstr *qstr) in adfs_hash() argument
201 if (qstr->len < name_len) in adfs_hash()
208 qstr->len = i = name_len; in adfs_hash()
209 name = qstr->name; in adfs_hash()
220 qstr->hash = end_name_hash(hash); in adfs_hash()
231 unsigned int len, const char *str, const struct qstr *name) in adfs_compare()
/linux-4.4.14/fs/isofs/
Dinode.c31 static int isofs_hashi(const struct dentry *parent, struct qstr *qstr);
34 unsigned int len, const char *str, const struct qstr *name);
37 static int isofs_hashi_ms(const struct dentry *parent, struct qstr *qstr);
38 static int isofs_hash_ms(const struct dentry *parent, struct qstr *qstr);
41 unsigned int len, const char *str, const struct qstr *name);
44 unsigned int len, const char *str, const struct qstr *name);
177 isofs_hashi_common(struct qstr *qstr, int ms) in isofs_hashi_common() argument
184 len = qstr->len; in isofs_hashi_common()
185 name = qstr->name; in isofs_hashi_common()
196 qstr->hash = end_name_hash(hash); in isofs_hashi_common()
[all …]
Dnamei.c20 struct qstr qstr; in isofs_cmp() local
21 qstr.name = compare; in isofs_cmp()
22 qstr.len = dlen; in isofs_cmp()
25 return dentry->d_op->d_compare(NULL, NULL, dentry->d_name.len, dentry->d_name.name, &qstr); in isofs_cmp()
/linux-4.4.14/fs/ext2/
Dxattr.h118 const struct qstr *qstr);
121 const struct qstr *qstr) in ext2_init_security() argument
Dxattr_security.c66 const struct qstr *qstr) in ext2_init_security() argument
68 return security_inode_init_security(inode, dir, qstr, in ext2_init_security()
Dialloc.c431 const struct qstr *qstr) in ext2_new_inode() argument
592 err = ext2_init_security(inode, dir, qstr); in ext2_new_inode()
Dext2.h754 extern ino_t ext2_inode_by_name(struct inode *, struct qstr *);
756 extern struct ext2_dir_entry_2 * ext2_find_entry (struct inode *,struct qstr *, struct page **);
763 extern struct inode * ext2_new_inode (struct inode *, umode_t, const struct qstr *);
Ddir.c362 struct qstr *child, struct page ** res_page) in ext2_find_entry()
438 ino_t ext2_inode_by_name(struct inode *dir, struct qstr *child) in ext2_inode_by_name()
Dnamei.c81 struct qstr dotdot = QSTR_INIT("..", 2); in ext2_get_parent()
/linux-4.4.14/fs/efivarfs/
Dsuper.c51 const struct qstr *name) in efivarfs_d_compare()
66 static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr) in efivarfs_d_hash() argument
69 const unsigned char *s = qstr->name; in efivarfs_d_hash()
70 unsigned int len = qstr->len; in efivarfs_d_hash()
82 qstr->hash = end_name_hash(hash); in efivarfs_d_hash()
95 struct qstr q; in efivarfs_alloc_dentry()
/linux-4.4.14/fs/sysv/
Dnamei.c30 static int sysv_hash(const struct dentry *dentry, struct qstr *qstr) in sysv_hash() argument
34 if (qstr->len > SYSV_NAMELEN) { in sysv_hash()
35 qstr->len = SYSV_NAMELEN; in sysv_hash()
36 qstr->hash = full_name_hash(qstr->name, qstr->len); in sysv_hash()
/linux-4.4.14/fs/jfs/
Djfs_xattr.h68 const struct qstr *);
71 struct inode *dir, const struct qstr *qstr) in jfs_init_security() argument
Dxattr.c1101 const struct qstr *qstr) in jfs_init_security() argument
1103 return security_inode_init_security(inode, dir, qstr, in jfs_init_security()
Dnamei.c1561 static int jfs_ci_hash(const struct dentry *dir, struct qstr *this) in jfs_ci_hash()
1575 unsigned int len, const char *str, const struct qstr *name) in jfs_ci_compare()
/linux-4.4.14/fs/ext4/
Dxattr.h132 struct inode *dir, const struct qstr *qstr);
135 struct inode *dir, const struct qstr *qstr) in ext4_init_security() argument
Dxattr_security.c74 const struct qstr *qstr) in ext4_init_security() argument
76 return security_inode_init_security(inode, dir, qstr, in ext4_init_security()
Dialloc.c445 const struct qstr *qstr) in find_group_orlov() argument
483 if (qstr) { in find_group_orlov()
486 ext4fs_dirhash(qstr->name, qstr->len, &hinfo); in find_group_orlov()
743 umode_t mode, const struct qstr *qstr, in __ext4_new_inode() argument
819 ret2 = find_group_orlov(sb, dir, &group, mode, qstr); in __ext4_new_inode()
1093 err = ext4_init_security(handle, inode, dir, qstr); in __ext4_new_inode()
Dcrypto_fname.c64 const struct qstr *iname, in ext4_fname_encrypt()
369 const struct qstr *iname, in ext4_fname_usr_to_disk()
395 int ext4_fname_setup_filename(struct inode *dir, const struct qstr *iname, in ext4_fname_setup_filename()
Dext4.h2033 const struct qstr *usr_fname;
2302 const struct qstr *iname,
2306 int ext4_fname_setup_filename(struct inode *dir, const struct qstr *iname,
2317 const struct qstr *iname, in ext4_fname_setup_filename()
2423 const struct qstr *qstr, __u32 goal,
2427 #define ext4_new_inode(handle, dir, mode, qstr, goal, owner) \ argument
2428 __ext4_new_inode((handle), (dir), (mode), (qstr), (goal), (owner), \
2430 #define ext4_new_inode_start_handle(dir, mode, qstr, goal, owner, \ argument
2432 __ext4_new_inode(NULL, (dir), (mode), (qstr), (goal), (owner), \
2555 const struct qstr *d_name,
[all …]
Dnamei.c1147 const struct qstr *d_name, in search_dirblock()
1267 const struct qstr *d_name, in ext4_search_dir()
1345 const struct qstr *d_name, in ext4_find_entry()
1507 const struct qstr *d_name = fname->usr_fname; in ext4_dx_find_entry()
1607 static const struct qstr dotdot = QSTR_INIT("..", 2); in ext4_get_parent()
3117 struct qstr istr; in ext4_symlink()
3373 const struct qstr *d_name) in ext4_find_delete_entry()
Dinline.c1612 const struct qstr *d_name, in ext4_find_inline_entry()
/linux-4.4.14/fs/reiserfs/
Dxattr.h39 const struct qstr *qstr,
108 const struct qstr *qstr, in reiserfs_security_init() argument
Dxattr_security.c58 const struct qstr *qstr, in reiserfs_security_init() argument
70 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init()
/linux-4.4.14/fs/fat/
Dnamei_vfat.c97 static unsigned int vfat_striptail_len(const struct qstr *qstr) in vfat_striptail_len() argument
99 return __vfat_striptail_len(qstr->len, qstr->name); in vfat_striptail_len()
108 static int vfat_hash(const struct dentry *dentry, struct qstr *qstr) in vfat_hash() argument
110 qstr->hash = full_name_hash(qstr->name, vfat_striptail_len(qstr)); in vfat_hash()
120 static int vfat_hashi(const struct dentry *dentry, struct qstr *qstr) in vfat_hashi() argument
127 name = qstr->name; in vfat_hashi()
128 len = vfat_striptail_len(qstr); in vfat_hashi()
133 qstr->hash = end_name_hash(hash); in vfat_hashi()
142 unsigned int len, const char *str, const struct qstr *name) in vfat_cmpi()
161 unsigned int len, const char *str, const struct qstr *name) in vfat_cmp()
[all …]
Dnamei_msdos.c149 static int msdos_hash(const struct dentry *dentry, struct qstr *qstr) in msdos_hash() argument
155 error = msdos_format_name(qstr->name, qstr->len, msdos_name, options); in msdos_hash()
157 qstr->hash = full_name_hash(msdos_name, MSDOS_NAME); in msdos_hash()
166 unsigned int len, const char *str, const struct qstr *name) in msdos_cmp()
/linux-4.4.14/fs/proc/
Dgeneric.c362 struct qstr qstr; in __proc_create() local
366 qstr.name = fn; in __proc_create()
367 qstr.len = strlen(fn); in __proc_create()
368 if (qstr.len == 0 || qstr.len >= 256) { in __proc_create()
369 WARN(1, "name len %u\n", qstr.len); in __proc_create()
372 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { in __proc_create()
373 WARN(1, "create '/proc/%s' by hand\n", qstr.name); in __proc_create()
381 ent = kzalloc(sizeof(struct proc_dir_entry) + qstr.len + 1, GFP_KERNEL); in __proc_create()
385 memcpy(ent->name, fn, qstr.len + 1); in __proc_create()
386 ent->namelen = qstr.len; in __proc_create()
Dinternal.h115 static inline unsigned name_to_int(const struct qstr *qstr) in name_to_int() argument
117 const char *name = qstr->name; in name_to_int()
118 int len = qstr->len; in name_to_int()
Dproc_sysctl.c477 struct qstr *name = &dentry->d_name; in proc_sys_lookup()
620 struct qstr qname; in proc_sys_fill_cache()
837 unsigned int len, const char *str, const struct qstr *name) in proc_sys_compare()
Dbase.c1805 struct qstr qname = QSTR_INIT(name, len); in proc_fill_cache()
2856 struct qstr name; in proc_flush_task_mnt()
/linux-4.4.14/fs/ocfs2/
Dxattr.h58 const struct qstr *,
97 const struct qstr *qstr);
Dxattr.c7200 const struct qstr *qstr) in ocfs2_init_security_and_acl() argument
7205 ret = ocfs2_init_security_get(inode, dir, qstr, NULL); in ocfs2_init_security_and_acl()
7283 const struct qstr *qstr, in ocfs2_init_security_get() argument
7290 return security_old_inode_init_security(inode, dir, qstr, in ocfs2_init_security_get()
7294 return security_inode_init_security(inode, dir, qstr, in ocfs2_init_security_get()
/linux-4.4.14/fs/jffs2/
Dsecurity.c44 const struct qstr *qstr) in jffs2_init_security() argument
46 return security_inode_init_security(inode, dir, qstr, in jffs2_init_security()
Dxattr.h127 const struct qstr *qstr);
130 #define jffs2_init_security(inode,dir,qstr) (0) argument
Dwrite.c442 const struct qstr *qstr) in jffs2_do_create() argument
484 ret = jffs2_init_security(&f->vfs_inode, &dir_f->vfs_inode, qstr); in jffs2_do_create()
491 ret = jffs2_reserve_space(c, sizeof(*rd)+qstr->len, &alloclen, in jffs2_do_create()
492 ALLOC_NORMAL, JFFS2_SUMMARY_DIRENT_SIZE(qstr->len)); in jffs2_do_create()
511 rd->totlen = cpu_to_je32(sizeof(*rd) + qstr->len); in jffs2_do_create()
518 rd->nsize = qstr->len; in jffs2_do_create()
521 rd->name_crc = cpu_to_je32(crc32(0, qstr->name, qstr->len)); in jffs2_do_create()
523 fd = jffs2_write_dirent(c, dir_f, rd, qstr->name, qstr->len, ALLOC_NORMAL); in jffs2_do_create()
Dnodelist.h408 struct jffs2_raw_inode *ri, const struct qstr *qstr);
/linux-4.4.14/fs/f2fs/
Dxattr.h148 const struct qstr *, struct page *);
151 const struct qstr *qstr, struct page *ipage) in f2fs_init_security() argument
Ddir.c163 struct qstr name = FSTR_TO_QSTR(&fname->disk_name); in find_in_level()
217 struct qstr *child, struct page **res_page) in f2fs_find_entry()
272 ino_t f2fs_inode_by_name(struct inode *dir, struct qstr *qstr) in f2fs_inode_by_name() argument
278 de = f2fs_find_entry(dir, qstr, &page); in f2fs_inode_by_name()
304 static void init_dent_inode(const struct qstr *name, struct page *ipage) in init_dent_inode()
318 const struct qstr *name) in update_dent_inode()
385 const struct qstr *name, struct page *dpage) in init_inode_metadata()
495 const struct qstr *name, f2fs_hash_t name_hash, in f2fs_update_dentry()
516 int __f2fs_add_link(struct inode *dir, const struct qstr *name, in __f2fs_add_link()
530 struct qstr new_name; in __f2fs_add_link()
Dcrypto_fname.c70 const struct qstr *iname, struct f2fs_str *oname) in f2fs_fname_encrypt()
312 const struct qstr qname = FSTR_TO_QSTR(iname); in f2fs_fname_disk_to_usr()
347 const struct qstr *iname, in f2fs_fname_usr_to_disk()
370 int f2fs_fname_setup_filename(struct inode *dir, const struct qstr *iname, in f2fs_fname_setup_filename()
Df2fs.h273 const struct qstr *usr_fname;
1592 static inline bool is_dot_dotdot(const struct qstr *str) in is_dot_dotdot()
1688 const struct qstr *, struct page *);
1692 struct f2fs_dir_entry *f2fs_find_entry(struct inode *, struct qstr *,
1695 ino_t f2fs_inode_by_name(struct inode *, struct qstr *);
1698 int update_dent_inode(struct inode *, struct inode *, const struct qstr *);
1700 const struct qstr *, f2fs_hash_t , unsigned int);
1701 int __f2fs_add_link(struct inode *, const struct qstr *, struct inode *, nid_t,
1725 f2fs_hash_t f2fs_dentry_hash(const struct qstr *);
2050 int f2fs_add_inline_entry(struct inode *, const struct qstr *, struct inode *,
[all …]
Dhash.c73 f2fs_hash_t f2fs_dentry_hash(const struct qstr *name_info) in f2fs_dentry_hash()
Dxattr.c176 const struct qstr *qstr, struct page *ipage) in f2fs_init_security() argument
178 return security_inode_init_security(inode, dir, qstr, in f2fs_init_security()
Dnamei.c201 struct qstr dotdot = QSTR_INIT("..", 2); in f2fs_get_parent()
211 struct qstr dot = QSTR_INIT(".", 1); in __recover_dot_dentries()
212 struct qstr dotdot = QSTR_INIT("..", 2); in __recover_dot_dentries()
364 struct qstr istr = QSTR_INIT(symname, len); in f2fs_symlink()
Dinline.c296 struct qstr name = FSTR_TO_QSTR(&fname->disk_name); in find_in_inline_dir()
431 int f2fs_add_inline_entry(struct inode *dir, const struct qstr *name, in f2fs_add_inline_entry()
Drecovery.c75 struct qstr name; in recover_dentry()
/linux-4.4.14/fs/ubifs/
Dxattr.c101 const struct qstr *nm, const void *value, int size) in create_xattr()
261 static int check_namespace(const struct qstr *nm) in check_namespace()
311 struct qstr nm = QSTR_INIT(name, strlen(name)); in setxattr()
381 struct qstr nm = QSTR_INIT(name, strlen(name)); in ubifs_getxattr()
446 struct qstr nm = { .name = NULL }; in ubifs_listxattr()
503 struct inode *inode, const struct qstr *nm) in remove_xattr()
546 struct qstr nm = QSTR_INIT(name, strlen(name)); in ubifs_removexattr()
617 const struct qstr *qstr) in ubifs_init_security() argument
621 err = security_inode_init_security(inode, dentry, qstr, in ubifs_init_security()
Dkey.h154 const struct qstr *nm) in dent_key_init()
188 ino_t inum, const struct qstr *nm) in dent_key_init_flash()
222 const struct qstr *nm) in xent_key_init()
239 ino_t inum, const struct qstr *nm) in xent_key_init_flash()
Dubifs.h1540 const struct qstr *nm, const struct inode *inode,
1553 const struct inode *inode, const struct qstr *nm);
1588 void *node, const struct qstr *nm);
1596 int lnum, int offs, int len, const struct qstr *nm);
1599 const struct qstr *nm);
1605 const struct qstr *nm);
1766 const struct qstr *qstr);
Dtnc.c522 const struct qstr *nm) in matches_name()
692 const struct qstr *nm) in resolve_collision()
810 const struct qstr *nm) in fallible_matches_name()
881 const struct qstr *nm, int adding) in fallible_resolve_collision()
1792 void *node, const struct qstr *nm) in do_lookup_nm()
1840 void *node, const struct qstr *nm) in ubifs_tnc_lookup_nm()
2282 int lnum, int offs, int len, const struct qstr *nm) in ubifs_tnc_add_nm()
2347 struct qstr noname = { .name = "" }; in ubifs_tnc_add_nm()
2517 const struct qstr *nm) in ubifs_tnc_remove_nm()
2672 struct qstr nm = { .name = NULL }; in ubifs_tnc_remove_ino()
[all …]
Ddir.c173 const struct qstr *nm) in dbg_check_name()
354 struct qstr nm; in ubifs_readdir()
629 struct qstr nm = { .name = NULL }; in check_dir_empty()
Djournal.c542 const struct qstr *nm, const struct inode *inode, in ubifs_jnl_update()
1287 const struct inode *inode, const struct qstr *nm) in ubifs_jnl_delete_xattr()
Dreplay.c64 struct qstr nm;
Ddebug.c236 struct qstr nm = { .name = NULL }; in ubifs_dump_inode()
1110 struct qstr nm = { .name = NULL }; in dbg_check_dir()
/linux-4.4.14/fs/btrfs/
Dxattr.h39 const struct qstr *qstr);
Dxattr.c515 const struct qstr *qstr) in btrfs_xattr_security_init() argument
517 return security_inode_init_security(inode, dir, qstr, in btrfs_xattr_security_init()
Dinode.c121 const struct qstr *qstr) in btrfs_init_inode_security() argument
127 err = btrfs_xattr_security_init(trans, inode, dir, qstr); in btrfs_init_inode_security()
/linux-4.4.14/arch/hexagon/include/asm/
Dthread_info.h91 #define qqstr(s) qstr(s)
92 #define qstr(s) #s macro
/linux-4.4.14/fs/nilfs2/
Ddir.c319 nilfs_find_entry(struct inode *dir, const struct qstr *qstr, in nilfs_find_entry() argument
322 const unsigned char *name = qstr->name; in nilfs_find_entry()
323 int namelen = qstr->len; in nilfs_find_entry()
394 ino_t nilfs_inode_by_name(struct inode *dir, const struct qstr *qstr) in nilfs_inode_by_name() argument
400 de = nilfs_find_entry(dir, qstr, &page); in nilfs_inode_by_name()
Dnilfs.h238 extern ino_t nilfs_inode_by_name(struct inode *, const struct qstr *);
241 nilfs_find_entry(struct inode *, const struct qstr *, struct page **);
Dnamei.c450 struct qstr dotdot = QSTR_INIT("..", 2); in nilfs_get_parent()
/linux-4.4.14/fs/ufs/
Ddir.c68 ino_t ufs_inode_by_name(struct inode *dir, const struct qstr *qstr) in ufs_inode_by_name() argument
74 de = ufs_find_entry(dir, qstr, &page); in ufs_inode_by_name()
248 struct ufs_dir_entry *ufs_find_entry(struct inode *dir, const struct qstr *qstr, in ufs_find_entry() argument
252 const unsigned char *name = qstr->name; in ufs_find_entry()
253 int namelen = qstr->len; in ufs_find_entry()
Dufs.h102 extern ino_t ufs_inode_by_name(struct inode *, const struct qstr *);
104 extern struct ufs_dir_entry *ufs_find_entry(struct inode *, const struct qstr *, struct page **);
Dsuper.c129 struct qstr dot_dot = QSTR_INIT("..", 2); in ufs_get_parent()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dstatahead.c84 struct qstr se_qstr;
267 ll_sa_entry_get_byname(struct ll_statahead_info *sai, const struct qstr *qstr) in ll_sa_entry_get_byname() argument
270 int i = ll_sa_entry_hash(qstr->hash); in ll_sa_entry_get_byname()
273 if (entry->se_qstr.hash == qstr->hash && in ll_sa_entry_get_byname()
274 entry->se_qstr.len == qstr->len && in ll_sa_entry_get_byname()
275 memcmp(entry->se_qstr.name, qstr->name, qstr->len) == 0) in ll_sa_entry_get_byname()
798 struct qstr *qstr = &entry->se_qstr; in sa_args_init() local
814 op_data = ll_prep_md_op_data(&minfo->mi_data, dir, child, qstr->name, in sa_args_init()
815 qstr->len, 0, LUSTRE_OPC_ANY, NULL); in sa_args_init()
1350 struct qstr *target = &dentry->d_name; in is_first_dirent()
Ddcache.c86 const struct qstr *name) in ll_dcompare()
/linux-4.4.14/fs/nfs/
Dnfs4_fs.h227 struct rpc_clnt *nfs4_negotiate_security(struct rpc_clnt *, struct inode *, struct qstr *);
249 extern int nfs4_proc_fs_locations(struct rpc_clnt *, struct inode *, const struct qstr *,
254 extern struct rpc_clnt *nfs4_proc_lookup_mountpoint(struct inode *, struct qstr *,
256 extern int nfs4_proc_secinfo(struct inode *, const struct qstr *, struct nfs4_secinfo_flavors *);
Dproc.c148 nfs_proc_lookup(struct inode *dir, struct qstr *name, in nfs_proc_lookup()
302 nfs_proc_remove(struct inode *dir, struct qstr *name) in nfs_proc_remove()
360 nfs_proc_link(struct inode *inode, struct inode *dir, struct qstr *name) in nfs_proc_link()
459 nfs_proc_rmdir(struct inode *dir, struct qstr *name) in nfs_proc_rmdir()
Dnfs4namespace.c211 struct qstr *name) in nfs4_negotiate_security()
400 struct qstr *name = &dentry->d_name; in nfs4_submount()
Dnfs3proc.c147 nfs3_proc_lookup(struct inode *dir, struct qstr *name, in nfs3_proc_lookup()
407 nfs3_proc_remove(struct inode *dir, struct qstr *name) in nfs3_proc_remove()
483 nfs3_proc_link(struct inode *inode, struct inode *dir, struct qstr *name) in nfs3_proc_link()
585 nfs3_proc_rmdir(struct inode *dir, struct qstr *name) in nfs3_proc_rmdir()
Dnfs4trace.h693 const struct qstr *name,
727 const struct qstr *name, \
743 const struct qstr *oldname,
745 const struct qstr *newname,
Dnfs2xdr.c716 const struct qstr *old = args->old_name; in nfs2_xdr_enc_renameargs()
717 const struct qstr *new = args->new_name; in nfs2_xdr_enc_renameargs()
Dnfs4proc.c3318 const struct qstr *name, struct nfs_fattr *fattr, in nfs4_get_referral()
3465 const struct qstr *name, struct nfs_fh *fhandle, in _nfs4_proc_lookup()
3506 struct qstr *name, struct nfs_fh *fhandle, in nfs4_proc_lookup_common()
3548 static int nfs4_proc_lookup(struct inode *dir, struct qstr *name, in nfs4_proc_lookup()
3564 nfs4_proc_lookup_mountpoint(struct inode *dir, struct qstr *name, in nfs4_proc_lookup_mountpoint()
3723 static int _nfs4_proc_remove(struct inode *dir, struct qstr *name) in _nfs4_proc_remove()
3746 static int nfs4_proc_remove(struct inode *dir, struct qstr *name) in nfs4_proc_remove()
3829 static int _nfs4_proc_link(struct inode *inode, struct inode *dir, struct qstr *name) in _nfs4_proc_link()
3876 static int nfs4_proc_link(struct inode *inode, struct inode *dir, struct qstr *name) in nfs4_proc_link()
3898 struct qstr *name, struct iattr *sattr, u32 ftype) in nfs4_alloc_createdata()
[all …]
Ddir.c143 struct qstr string;
214 int nfs_readdir_make_qstr(struct qstr *string, const char *name, unsigned int len) in nfs_readdir_make_qstr()
472 struct qstr filename = QSTR_INIT(entry->name, entry->len); in nfs_prime_dcache()
Dnfs4xdr.c1275 static void encode_link(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr) in encode_link()
1365 static void encode_lookup(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr) in encode_lookup()
1458 static inline void encode_claim_null(struct xdr_stream *xdr, const struct qstr *name) in encode_claim_null()
1476 static inline void encode_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const… in encode_claim_delegate_cur()
1624 static void encode_remove(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr) in encode_remove()
1630 static void encode_rename(struct xdr_stream *xdr, const struct qstr *oldname, const struct qstr *ne… in encode_rename()
1725 static void encode_secinfo(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hd… in encode_secinfo()
Dnfs3xdr.c1195 const struct qstr *old = args->old_name; in nfs3_xdr_enc_rename3args()
1196 const struct qstr *new = args->new_name; in nfs3_xdr_enc_rename3args()
/linux-4.4.14/fs/ocfs2/dlmfs/
Duserdlm.h86 struct ocfs2_cluster_connection *user_dlm_register(struct qstr *name);
Ddlmfs.c472 struct qstr *domain = &dentry->d_name; in dlmfs_mkdir()
521 struct qstr *name = &dentry->d_name; in dlmfs_create()
Duserdlm.c670 struct ocfs2_cluster_connection *user_dlm_register(struct qstr *name) in user_dlm_register()
/linux-4.4.14/security/selinux/include/
Dsecurity.h150 const struct qstr *qstr, u32 *out_sid);
/linux-4.4.14/fs/
Ddcache.c1545 struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name) in __d_alloc()
1616 struct dentry *d_alloc(struct dentry * parent, const struct qstr *name) in d_alloc()
1644 struct dentry *d_alloc_pseudo(struct super_block *sb, const struct qstr *name) in d_alloc_pseudo()
1652 struct qstr q; in d_alloc_name()
1893 static const struct qstr name = QSTR_INIT("/", 1); in d_make_root()
1936 static const struct qstr anonstring = QSTR_INIT("/", 1); in __d_obtain_alias()
2051 struct qstr *name) in d_add_ci()
2103 const struct qstr *name) in slow_dentry_cmp()
2147 const struct qstr *name, in __d_lookup_rcu()
2234 struct dentry *d_lookup(const struct dentry *parent, const struct qstr *name) in d_lookup()
[all …]
Dinternal.h130 extern struct dentry *__d_alloc(struct super_block *, const struct qstr *);
Danon_inodes.c74 struct qstr this; in anon_inode_getfile()
Dnsfs.c51 struct qstr qname = { .name = "", }; in ns_get_path()
Dnamei.c498 struct qstr last;
1451 static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir, in lookup_dcache()
1510 static struct dentry *__lookup_hash(struct qstr *name, in __lookup_hash()
1931 struct qstr this = { { .hash_len = hash_len }, .name = name }; in link_path_walk()
2200 struct qstr *last, int *type) in filename_parentat()
2230 struct qstr last; in kern_path_locked()
2289 struct qstr this; in lookup_one_len()
2346 struct qstr *last, in user_path_parent()
3241 static const struct qstr name = QSTR_INIT("/", 1); in do_tmpfile()
3396 struct qstr last; in filename_create()
[all …]
Dlibfs.c74 static struct qstr cursor_name = QSTR_INIT(".", 1); in dcache_dir_open()
218 struct qstr d_name = QSTR_INIT(name, strlen(name)); in mount_pseudo()
Dpipe.c719 static struct qstr name = { .name = "" }; in create_pipe_files()
Daio.c207 struct qstr this = QSTR_INIT("[aio]", 5); in aio_private_file()
/linux-4.4.14/security/
Dsecurity.c358 struct qstr *name, void **ctx, in security_dentry_init_security()
367 const struct qstr *qstr, in security_inode_init_security() argument
379 dir, qstr, NULL, NULL, NULL); in security_inode_init_security()
382 ret = call_int_hook(inode_init_security, -EOPNOTSUPP, inode, dir, qstr, in security_inode_init_security()
402 const struct qstr *qstr, const char **name, in security_old_inode_init_security() argument
408 qstr, name, value, len); in security_old_inode_init_security()
/linux-4.4.14/fs/fuse/
Dfuse_i.h697 int fuse_lookup_name(struct super_block *sb, u64 nodeid, struct qstr *name,
922 u64 child_nodeid, struct qstr *name);
Ddir.c149 u64 nodeid, struct qstr *name, in fuse_lookup_init()
285 int fuse_lookup_name(struct super_block *sb, u64 nodeid, struct qstr *name, in fuse_lookup_name()
936 u64 child_nodeid, struct qstr *name) in fuse_reverse_inval_entry()
1169 struct qstr name = QSTR_INIT(dirent->name, dirent->namelen); in fuse_direntplus_link()
Dinode.c662 struct qstr name; in fuse_get_dentry()
764 struct qstr name; in fuse_get_parent()
Ddev.c1499 struct qstr name; in fuse_notify_inval_entry()
1550 struct qstr name; in fuse_notify_delete()
/linux-4.4.14/fs/ncpfs/
Ddir.c76 static int ncp_hash_dentry(const struct dentry *, struct qstr *);
78 unsigned int, const char *, const struct qstr *);
128 ncp_hash_dentry(const struct dentry *dentry, struct qstr *this) in ncp_hash_dentry()
158 unsigned int len, const char *str, const struct qstr *name) in ncp_compare_dentry()
585 struct qstr qname; in ncp_fill_cache()
/linux-4.4.14/fs/xfs/
Dxfs_iops.c91 const struct qstr *qstr) in xfs_init_security() argument
93 return security_inode_init_security(inode, dir, qstr, in xfs_init_security()
269 struct qstr dname; in xfs_vn_ci_lookup()
/linux-4.4.14/net/sunrpc/
Drpc_pipe.c650 struct qstr q = QSTR_INIT(name, strlen(name)); in __rpc_lookup_create_exclusive()
672 struct qstr name; in __rpc_depopulate()
1209 struct qstr dir = QSTR_INIT(dir_name, strlen(dir_name)); in rpc_d_lookup_sb()
1332 struct qstr q = QSTR_INIT(files[RPCAUTH_gssd].name, in rpc_gssd_dummy_populate()
/linux-4.4.14/fs/ntfs/
Dnamei.c182 struct qstr nls_name; in ntfs_lookup()
/linux-4.4.14/fs/cifs/
Dreaddir.c76 cifs_prime_dcache(struct dentry *parent, struct qstr *name, in cifs_prime_dcache()
692 struct qstr name; in cifs_filldir()
Ddir.c852 static int cifs_ci_hash(const struct dentry *dentry, struct qstr *q) in cifs_ci_hash()
873 unsigned int len, const char *str, const struct qstr *name) in cifs_ci_compare()
/linux-4.4.14/fs/logfs/
Ddir.c159 struct qstr *name = &dentry->d_name; in logfs_get_dd_page()
326 static void logfs_set_name(struct logfs_disk_dentry *dd, struct qstr *name) in logfs_set_name()
/linux-4.4.14/fs/coda/
Ddir.c350 struct qstr name; in coda_venus_readdir()
/linux-4.4.14/security/selinux/ss/
Dservices.c1754 const struct qstr *qstr, u32 *out_sid) in security_transition_sid() argument
1757 qstr ? qstr->name : NULL, out_sid, true); in security_transition_sid()
/linux-4.4.14/fs/udf/
Dnamei.c161 const struct qstr *child, in udf_find_entry()
1229 struct qstr dotdot = QSTR_INIT("..", 2); in udf_get_parent()
/linux-4.4.14/fs/ocfs2/dlm/
Ddlmcommon.h296 struct qstr lockname;
Ddlmdomain.c172 struct qstr *q; in __dlm_insert_lockres()
/linux-4.4.14/Documentation/filesystems/
DLocking14 int (*d_hash)(const struct dentry *, struct qstr *);
16 unsigned int, const char *, const struct qstr *);
Dvfs.txt933 int (*d_hash)(const struct dentry *, struct qstr *);
935 unsigned int, const char *, const struct qstr *);
987 to be compared. qstr is the name to compare it with.
/linux-4.4.14/fs/overlayfs/
Dsuper.c391 struct qstr *name) in ovl_lookup_real()
/linux-4.4.14/fs/afs/
Ddir.c124 struct qstr name;
/linux-4.4.14/security/selinux/
Dhooks.c1716 const struct qstr *name, in selinux_determine_inode_label()
2735 struct qstr *name, void **ctx, in selinux_dentry_init_security()
2751 const struct qstr *qstr, in selinux_inode_init_security() argument
2769 dir, qstr, in selinux_inode_init_security()
/linux-4.4.14/fs/ceph/
Dinode.c1099 struct qstr dname; in ceph_fill_trace()
1389 struct qstr dname; in ceph_readdir_prepopulate()
Dmds_client.c3166 struct qstr dname; in handle_lease()
/linux-4.4.14/fs/hugetlbfs/
Dinode.c1243 struct qstr quick_string; in hugetlb_file_setup()
/linux-4.4.14/security/smack/
Dsmack_lsm.c1018 const struct qstr *qstr, const char **name, in smack_inode_init_security() argument
/linux-4.4.14/net/
Dsocket.c357 struct qstr name = { .name = "" }; in sock_alloc_file()
/linux-4.4.14/mm/
Dshmem.c3330 struct qstr this; in __shmem_file_setup()
/linux-4.4.14/arch/ia64/kernel/
Dperfmon.c2177 struct qstr this = { .name = "" }; in pfm_alloc_file()