Home
last modified time | relevance | path

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

123456

/linux/fs/hpfs/
H A Ddentry.c16 static int hpfs_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in hpfs_hash_dentry() argument
20 unsigned l = qstr->len; in hpfs_hash_dentry()
22 if (l == 1) if (qstr->name[0]=='.') goto x; in hpfs_hash_dentry()
23 if (l == 2) if (qstr->name[0]=='.' || qstr->name[1]=='.') goto x; in hpfs_hash_dentry()
24 hpfs_adjust_length(qstr->name, &l); in hpfs_hash_dentry()
32 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); in hpfs_hash_dentry()
33 qstr->hash = end_name_hash(hash); in hpfs_hash_dentry()
39 unsigned int len, const char *str, const struct qstr *name) in hpfs_compare_dentry()
/linux/fs/gfs2/
H A Ddir.h27 const struct qstr *filename,
29 int gfs2_dir_check(struct inode *dir, const struct qstr *filename,
31 int gfs2_dir_add(struct inode *inode, const struct qstr *filename,
41 int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename,
47 const struct qstr *filename,
59 static inline void gfs2_str2qstr(struct qstr *name, const char *fname) in gfs2_str2qstr()
67 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent()
79 extern struct qstr gfs2_qdot;
80 extern struct qstr gfs2_qdotdot;
/linux/fs/autofs/
H A Dwaitq.c180 autofs_find_wait(struct autofs_sb_info *sbi, const struct qstr *qstr) in autofs_find_wait() argument
185 if (wq->name.hash == qstr->hash && in autofs_find_wait()
186 wq->name.len == qstr->len && in autofs_find_wait()
188 !memcmp(wq->name.name, qstr->name, qstr->len)) in autofs_find_wait()
204 const struct qstr *qstr, in validate_request() argument
215 wq = autofs_find_wait(sbi, qstr); in validate_request()
249 wq = autofs_find_wait(sbi, qstr); in validate_request()
308 struct qstr qstr; in autofs_wait() local
350 qstr.name = name; in autofs_wait()
351 qstr.len = sprintf(name, "%p", dentry); in autofs_wait()
[all …]
H A Droot.c135 const struct qstr *name = &dentry->d_name; in autofs_lookup_active()
148 const struct qstr *qstr; in autofs_lookup_active() local
159 qstr = &active->d_name; in autofs_lookup_active()
166 if (qstr->len != len) in autofs_lookup_active()
168 if (memcmp(qstr->name, str, len)) in autofs_lookup_active()
190 const struct qstr *name = &dentry->d_name; in autofs_lookup_expiring()
203 const struct qstr *qstr; in autofs_lookup_expiring() local
219 qstr = &expiring->d_name; in autofs_lookup_expiring()
226 if (qstr->len != len) in autofs_lookup_expiring()
228 if (memcmp(qstr->name, str, len)) in autofs_lookup_expiring()
/linux/include/linux/
H A Ddcache.h49 struct qstr { struct
60 #define QSTR_LEN(n,l) (struct qstr)QSTR_INIT(n,l) argument
63 extern const struct qstr empty_name;
64 extern const struct qstr slash_name;
65 extern const struct qstr dotdot_name;
99 struct qstr __d_name; /* for use ONLY in fs/dcache.c */
100 const struct qstr d_name;
152 int (*d_revalidate)(struct inode *, const struct qstr *,
155 int (*d_hash)(const struct dentry *, struct qstr *);
157 unsigned int, const char *, const struct qstr *);
[all …]
H A Devm.h22 const struct qstr *qstr, struct xattr *xattrs,
57 const struct qstr *qstr, in evm_inode_init_security() argument
/linux/fs/adfs/
H A Ddir.c332 static int __adfs_compare(const unsigned char *qstr, u32 qlen, in __adfs_compare() argument
341 if (adfs_tolower(qstr[i]) != adfs_tolower(str[i])) in __adfs_compare()
347 static int adfs_dir_lookup_byname(struct inode *inode, const struct qstr *qstr, in adfs_dir_lookup_byname() argument
367 name = qstr->name; in adfs_dir_lookup_byname()
368 name_len = qstr->len; in adfs_dir_lookup_byname()
395 adfs_hash(const struct dentry *parent, struct qstr *qstr) in adfs_hash() argument
401 if (qstr->len > ADFS_SB(parent->d_sb)->s_namelen) in adfs_hash()
404 len = qstr->len; in adfs_hash()
405 name = qstr->name; in adfs_hash()
409 qstr->hash = end_name_hash(hash); in adfs_hash()
[all …]
/linux/fs/proc/
H A Dutil.c4 unsigned name_to_int(const struct qstr *qstr) in name_to_int() argument
6 const char *name = qstr->name; in name_to_int()
7 int len = qstr->len; in name_to_int()
H A Dgeneric.c219 static int proc_misc_d_revalidate(struct inode *dir, const struct qstr *name, in proc_misc_d_revalidate()
350 static int proc_net_d_revalidate(struct inode *dir, const struct qstr *name, in proc_net_d_revalidate()
425 struct qstr qstr; in __proc_create() local
429 qstr.name = fn; in __proc_create()
430 qstr.len = strlen(fn); in __proc_create()
431 if (qstr.len == 0 || qstr.len >= 256) { in __proc_create()
432 WARN(1, "name len %u\n", qstr.len); in __proc_create()
435 if (qstr.len == 1 && fn[0] == '.') { in __proc_create()
439 if (qstr.len == 2 && fn[0] == '.' && fn[1] == '.') { in __proc_create()
443 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { in __proc_create()
[all …]
/linux/fs/isofs/
H A Dinode.c39 static int isofs_hashi(const struct dentry *parent, struct qstr *qstr);
41 unsigned int len, const char *str, const struct qstr *name);
44 static int isofs_hashi_ms(const struct dentry *parent, struct qstr *qstr);
45 static int isofs_hash_ms(const struct dentry *parent, struct qstr *qstr);
47 unsigned int len, const char *str, const struct qstr *name);
49 unsigned int len, const char *str, const struct qstr *name);
175 isofs_hashi_common(const struct dentry *dentry, struct qstr *qstr, int ms) in isofs_hashi_common() argument
182 len = qstr->len; in isofs_hashi_common()
183 name = qstr->name; in isofs_hashi_common()
194 qstr->hash = end_name_hash(hash); in isofs_hashi_common()
[all …]
H A Dnamei.c21 struct qstr qstr; in isofs_cmp() local
22 qstr.name = compare; in isofs_cmp()
23 qstr.len = dlen; in isofs_cmp()
26 return dentry->d_op->d_compare(NULL, dentry->d_name.len, dentry->d_name.name, &qstr); in isofs_cmp()
/linux/fs/ext2/
H A Dxattr.h109 const struct qstr *qstr);
112 const struct qstr *qstr) in ext2_init_security() argument
H A Dxattr_security.c49 const struct qstr *qstr) in ext2_init_security() argument
51 return security_inode_init_security(inode, dir, qstr, in ext2_init_security()
/linux/fs/btrfs/
H A Dxattr.h13 struct qstr;
29 const struct qstr *qstr);
/linux/fs/fat/
H A Dnamei_vfat.c51 static int vfat_revalidate(struct inode *dir, const struct qstr *name, in vfat_revalidate()
63 static int vfat_revalidate_ci(struct inode *dir, const struct qstr *name, in vfat_revalidate_ci()
108 static unsigned int vfat_striptail_len(const struct qstr *qstr) in vfat_striptail_len() argument
110 return __vfat_striptail_len(qstr->len, qstr->name); in vfat_striptail_len()
119 static int vfat_hash(const struct dentry *dentry, struct qstr *qstr) in vfat_hash() argument
121 qstr->hash = full_name_hash(dentry, qstr->name, vfat_striptail_len(qstr)); in vfat_hash()
131 static int vfat_hashi(const struct dentry *dentry, struct qstr *qstr) in vfat_hashi() argument
138 name = qstr->name; in vfat_hashi()
139 len = vfat_striptail_len(qstr); in vfat_hashi()
144 qstr->hash = end_name_hash(hash); in vfat_hashi()
[all …]
/linux/fs/jfs/
H A Djfs_xattr.h53 const struct qstr *);
56 struct inode *dir, const struct qstr *qstr) in jfs_init_security() argument
/linux/fs/jffs2/
H A Dsecurity.c44 const struct qstr *qstr) in jffs2_init_security() argument
46 return security_inode_init_security(inode, dir, qstr, in jffs2_init_security()
H A Dwrite.c443 const struct qstr *qstr) in jffs2_do_create() argument
485 ret = jffs2_init_security(&f->vfs_inode, &dir_f->vfs_inode, qstr); in jffs2_do_create()
492 ret = jffs2_reserve_space(c, sizeof(*rd)+qstr->len, &alloclen, in jffs2_do_create()
493 ALLOC_NORMAL, JFFS2_SUMMARY_DIRENT_SIZE(qstr->len)); in jffs2_do_create()
512 rd->totlen = cpu_to_je32(sizeof(*rd) + qstr->len); in jffs2_do_create()
519 rd->nsize = qstr->len; in jffs2_do_create()
522 rd->name_crc = cpu_to_je32(crc32(0, qstr->name, qstr->len)); in jffs2_do_create()
524 fd = jffs2_write_dirent(c, dir_f, rd, qstr->name, qstr->len, ALLOC_NORMAL); in jffs2_do_create()
/linux/fs/ext4/
H A Dxattr_security.c56 const struct qstr *qstr) in ext4_init_security() argument
58 return security_inode_init_security(inode, dir, qstr, in ext4_init_security()
H A Dxattr.h221 struct inode *dir, const struct qstr *qstr);
224 struct inode *dir, const struct qstr *qstr) in ext4_init_security() argument
/linux/fs/ocfs2/
H A Dxattr.h48 const struct qstr *,
87 const struct qstr *qstr);
/linux/fs/hfsplus/
H A Dxattr_security.c69 const struct qstr *qstr) in hfsplus_init_security() argument
71 return security_inode_init_security(inode, dir, qstr, in hfsplus_init_security()
/linux/fs/
H A Dinternal.h69 struct dentry *d_hash_and_lookup(struct dentry *, struct qstr *);
70 struct dentry *start_dirop(struct dentry *parent, struct qstr *name,
72 int lookup_noperm_common(struct qstr *qname, struct dentry *base);
225 extern struct dentry * d_alloc_pseudo(struct super_block *, const struct qstr *);
230 extern struct dentry *__d_lookup(const struct dentry *, const struct qstr *);
232 const struct qstr *name, unsigned *seq);
/linux/fs/efivarfs/
H A Dsuper.c151 const struct qstr *name) in efivarfs_d_compare()
170 static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr) in efivarfs_d_hash() argument
173 const unsigned char *s = qstr->name; in efivarfs_d_hash()
174 unsigned int len = qstr->len; in efivarfs_d_hash()
183 qstr->hash = end_name_hash(hash); in efivarfs_d_hash()
195 struct qstr q; in efivarfs_alloc_dentry()
/linux/fs/crypto/
H A Dfname.c77 static inline bool fscrypt_is_dot_dotdot(const struct qstr *str) in fscrypt_is_dot_dotdot()
94 int fscrypt_fname_encrypt(const struct inode *inode, const struct qstr *iname, in fscrypt_fname_encrypt()
272 const struct qstr qname = FSTR_TO_QSTR(iname); in fscrypt_fname_disk_to_usr()
342 int fscrypt_setup_filename(struct inode *dir, const struct qstr *iname, in fscrypt_setup_filename()
467 u64 fscrypt_fname_siphash(const struct inode *dir, const struct qstr *name) in fscrypt_fname_siphash()
481 int fscrypt_d_revalidate(struct inode *dir, const struct qstr *name, in fscrypt_d_revalidate()

123456