| /linux/fs/hpfs/ |
| H A D | dentry.c | 16 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 D | dir.h | 27 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;
|
| H A D | dentry.c | 35 static int gfs2_drevalidate(struct inode *dir, const struct qstr *name, in gfs2_drevalidate() 75 static int gfs2_dhash(const struct dentry *dentry, struct qstr *str) in gfs2_dhash()
|
| /linux/fs/autofs/ |
| H A D | waitq.c | 180 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 …]
|
| /linux/fs/proc/ |
| H A D | util.c | 4 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 D | generic.c | 221 static int proc_misc_d_revalidate(struct inode *dir, const struct qstr *name, in proc_misc_d_revalidate() 352 static int proc_net_d_revalidate(struct inode *dir, const struct qstr *name, in proc_net_d_revalidate() 426 struct qstr qstr; in __proc_create() local 430 qstr.name = fn; in __proc_create() 431 qstr.len = strnlen(fn, NAME_MAX + 1); in __proc_create() 432 if (qstr.len == 0) { in __proc_create() 436 if (qstr.len > NAME_MAX) { in __proc_create() 440 if (qstr.len == 1 && fn[0] == '.') { in __proc_create() 444 if (qstr.len == 2 && fn[0] == '.' && fn[1] == '.') { in __proc_create() 448 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { in __proc_create() [all …]
|
| /linux/fs/ext2/ |
| H A D | xattr.h | 109 const struct qstr *qstr); 112 const struct qstr *qstr) in ext2_init_security() argument
|
| H A D | xattr_security.c | 49 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 D | xattr.h | 13 struct qstr; 29 const struct qstr *qstr);
|
| /linux/fs/jfs/ |
| H A D | jfs_xattr.h | 53 const struct qstr *); 56 struct inode *dir, const struct qstr *qstr) in jfs_init_security() argument
|
| /linux/fs/jffs2/ |
| H A D | security.c | 44 const struct qstr *qstr) in jffs2_init_security() argument 46 return security_inode_init_security(inode, dir, qstr, in jffs2_init_security()
|
| H A D | write.c | 443 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()
|
| H A D | xattr.h | 121 const struct qstr *qstr); 124 #define jffs2_init_security(inode,dir,qstr) (0) argument
|
| /linux/fs/ext4/ |
| H A D | xattr_security.c | 56 const struct qstr *qstr) in ext4_init_security() argument 58 return security_inode_init_security(inode, dir, qstr, in ext4_init_security()
|
| H A D | xattr.h | 216 struct inode *dir, const struct qstr *qstr); 219 struct inode *dir, const struct qstr *qstr) in ext4_init_security() argument
|
| /linux/fs/hfsplus/ |
| H A D | xattr_security.c | 69 const struct qstr *qstr) in hfsplus_init_security() argument 71 return security_inode_init_security(inode, dir, qstr, in hfsplus_init_security()
|
| H A D | xattr.h | 39 const struct qstr *qstr);
|
| /linux/fs/ocfs2/ |
| H A D | xattr.h | 50 const struct qstr *, 92 const struct qstr *qstr);
|
| /linux/fs/f2fs/ |
| H A D | xattr.h | 161 const struct qstr *, struct folio *); 164 const struct qstr *qstr, struct folio *ifolio) in f2fs_init_security() argument
|
| /linux/fs/afs/ |
| H A D | dir_search.c | 21 unsigned int afs_dir_hash_name(const struct qstr *name) in afs_dir_hash_name() 57 bool afs_dir_init_iter(struct afs_dir_iter *iter, const struct qstr *name) in afs_dir_init_iter() 120 int afs_dir_search_bucket(struct afs_dir_iter *iter, const struct qstr *name, in afs_dir_search_bucket() 184 int afs_dir_search(struct afs_vnode *dvnode, const struct qstr *name, in afs_dir_search()
|
| /linux/include/linux/ |
| H A D | fscrypt.h | 44 const struct qstr *usr_fname; 204 int fscrypt_d_revalidate(struct inode *dir, const struct qstr *name, 428 int fscrypt_fname_encrypt(const struct inode *inode, const struct qstr *iname, 432 int fscrypt_setup_filename(struct inode *inode, const struct qstr *iname, 449 u64 fscrypt_fname_siphash(const struct inode *dir, const struct qstr *name); 679 const struct qstr *iname, in fscrypt_setup_filename() 726 const struct qstr *name) in fscrypt_fname_siphash() 732 static inline int fscrypt_d_revalidate(struct inode *dir, const struct qstr *name, in fscrypt_d_revalidate()
|
| H A D | nfs_xdr.h | 501 const struct qstr * name; 741 struct qstr name; 758 const struct qstr *old_name; 759 const struct qstr *new_name; 1071 const struct qstr * name; 1122 const struct qstr * name; 1137 const struct qstr * name; 1287 const struct qstr *name; 1313 const struct qstr *name; 1802 int (*lookup) (struct inode *, struct dentry *, const struct qstr *, [all …]
|
| /linux/arch/hexagon/include/asm/ |
| H A D | thread_info.h | 69 #define qqstr(s) qstr(s) 70 #define qstr(s) #s macro
|
| /linux/fs/orangefs/ |
| H A D | dcache.c | 16 static int orangefs_revalidate_lookup(struct inode *parent_inode, const struct qstr *name, in orangefs_revalidate_lookup() 92 static int orangefs_d_revalidate(struct inode *dir, const struct qstr *name, in orangefs_d_revalidate()
|
| /linux/fs/ufs/ |
| H A D | dir.c | 70 ino_t ufs_inode_by_name(struct inode *dir, const struct qstr *qstr) in ufs_inode_by_name() argument 76 de = ufs_find_entry(dir, qstr, &folio); in ufs_inode_by_name() 249 struct ufs_dir_entry *ufs_find_entry(struct inode *dir, const struct qstr *qstr, in ufs_find_entry() argument 253 const unsigned char *name = qstr->name; in ufs_find_entry() 254 int namelen = qstr->len; in ufs_find_entry()
|