/linux-4.19.296/fs/hpfs/ |
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-4.19.296/fs/gfs2/ |
D | dir.h | 30 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;
|
/linux-4.19.296/fs/autofs/ |
D | waitq.c | 228 autofs_find_wait(struct autofs_sb_info *sbi, const struct qstr *qstr) in autofs_find_wait() argument 233 if (wq->name.hash == qstr->hash && in autofs_find_wait() 234 wq->name.len == qstr->len && in autofs_find_wait() 236 !memcmp(wq->name.name, qstr->name, qstr->len)) in autofs_find_wait() 252 const struct qstr *qstr, in validate_request() argument 263 wq = autofs_find_wait(sbi, qstr); in validate_request() 297 wq = autofs_find_wait(sbi, qstr); in validate_request() 356 struct qstr qstr; in autofs_wait() local 397 qstr.len = sprintf(name, "%p", dentry); in autofs_wait() 399 qstr.len = autofs_getpath(sbi, dentry, name); in autofs_wait() [all …]
|
/linux-4.19.296/include/linux/ |
D | dcache.h | 47 struct qstr { struct 59 extern const struct qstr empty_name; argument 60 extern const struct qstr slash_name; 94 struct qstr d_name; 137 int (*d_hash)(const struct dentry *, struct qstr *); 139 unsigned int, const char *, const struct qstr *); 235 extern struct dentry * d_alloc(struct dentry *, const struct qstr *); 237 extern struct dentry * d_alloc_pseudo(struct super_block *, const struct qstr *); 238 extern struct dentry * d_alloc_parallel(struct dentry *, const struct qstr *, 241 extern struct dentry * d_add_ci(struct dentry *, struct inode *, struct qstr *); [all …]
|
/linux-4.19.296/fs/proc/ |
D | util.c | 3 unsigned name_to_int(const struct qstr *qstr) in name_to_int() argument 5 const char *name = qstr->name; in name_to_int() 6 int len = qstr->len; in name_to_int()
|
D | generic.c | 396 struct qstr qstr; in __proc_create() local 400 qstr.name = fn; in __proc_create() 401 qstr.len = strlen(fn); in __proc_create() 402 if (qstr.len == 0 || qstr.len >= 256) { in __proc_create() 403 WARN(1, "name len %u\n", qstr.len); in __proc_create() 406 if (qstr.len == 1 && fn[0] == '.') { in __proc_create() 410 if (qstr.len == 2 && fn[0] == '.' && fn[1] == '.') { in __proc_create() 414 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { in __proc_create() 415 WARN(1, "create '/proc/%s' by hand\n", qstr.name); in __proc_create() 427 if (qstr.len + 1 <= SIZEOF_PDE_INLINE_NAME) { in __proc_create() [all …]
|
/linux-4.19.296/fs/hfs/ |
D | hfs_fs.h | 181 extern int hfs_cat_create(u32, struct inode *, const struct qstr *, struct inode *); 182 extern int hfs_cat_delete(u32, struct inode *, const struct qstr *); 183 extern int hfs_cat_move(u32, struct inode *, const struct qstr *, 184 struct inode *, const struct qstr *); 185 extern void hfs_cat_build_key(struct super_block *, btree_key *, u32, const struct qstr *); 204 extern struct inode *hfs_new_inode(struct inode *, const struct qstr *, umode_t); 229 extern int hfs_hash_dentry(const struct dentry *, struct qstr *); 233 unsigned int len, const char *str, const struct qstr *name); 236 extern void hfs_asc2mac(struct super_block *, struct hfs_name *, const struct qstr *);
|
/linux-4.19.296/fs/adfs/ |
D | dir.c | 104 adfs_match(const struct qstr *name, struct object_info *obj) in adfs_match() 129 adfs_dir_lookup_byname(struct inode *inode, const struct qstr *name, struct object_info *obj) in adfs_dir_lookup_byname() 180 adfs_hash(const struct dentry *parent, struct qstr *qstr) in adfs_hash() argument 187 if (qstr->len < name_len) in adfs_hash() 194 qstr->len = i = name_len; in adfs_hash() 195 name = qstr->name; in adfs_hash() 206 qstr->hash = end_name_hash(hash); in adfs_hash() 217 unsigned int len, const char *str, const struct qstr *name) in adfs_compare()
|
/linux-4.19.296/fs/affs/ |
D | namei.c | 46 __affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr, toupper_t toupper, bool notrunca… in __affs_hash_dentry() argument 48 const u8 *name = qstr->name; in __affs_hash_dentry() 53 retval = affs_check_name(qstr->name, qstr->len, notruncate); in __affs_hash_dentry() 58 len = min(qstr->len, AFFSNAMEMAX); in __affs_hash_dentry() 61 qstr->hash = end_name_hash(hash); in __affs_hash_dentry() 67 affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in affs_hash_dentry() argument 69 return __affs_hash_dentry(dentry, qstr, affs_toupper, in affs_hash_dentry() 75 affs_intl_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in affs_intl_hash_dentry() argument 77 return __affs_hash_dentry(dentry, qstr, affs_intl_toupper, in affs_intl_hash_dentry() 83 const char *str, const struct qstr *name, toupper_t toupper, in __affs_compare_dentry() [all …]
|
/linux-4.19.296/fs/ext2/ |
D | xattr.h | 108 const struct qstr *qstr); 111 const struct qstr *qstr) in ext2_init_security() argument
|
D | xattr_security.c | 48 const struct qstr *qstr) in ext2_init_security() argument 50 return security_inode_init_security(inode, dir, qstr, in ext2_init_security()
|
/linux-4.19.296/fs/isofs/ |
D | inode.c | 34 static int isofs_hashi(const struct dentry *parent, struct qstr *qstr); 36 unsigned int len, const char *str, const struct qstr *name); 39 static int isofs_hashi_ms(const struct dentry *parent, struct qstr *qstr); 40 static int isofs_hash_ms(const struct dentry *parent, struct qstr *qstr); 42 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(const struct dentry *dentry, 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 …]
|
D | namei.c | 21 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-4.19.296/fs/efivarfs/ |
D | super.c | 49 const struct qstr *name) in efivarfs_d_compare() 64 static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr) in efivarfs_d_hash() argument 67 const unsigned char *s = qstr->name; in efivarfs_d_hash() 68 unsigned int len = qstr->len; in efivarfs_d_hash() 80 qstr->hash = end_name_hash(hash); in efivarfs_d_hash() 93 struct qstr q; in efivarfs_alloc_dentry()
|
/linux-4.19.296/fs/jfs/ |
D | jfs_xattr.h | 66 const struct qstr *); 69 struct inode *dir, const struct qstr *qstr) in jfs_init_security() argument
|
/linux-4.19.296/fs/reiserfs/ |
D | xattr.h | 36 const struct qstr *qstr, 102 const struct qstr *qstr, in reiserfs_security_init() argument
|
/linux-4.19.296/fs/jffs2/ |
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()
|
/linux-4.19.296/fs/sysv/ |
D | namei.c | 31 static int sysv_hash(const struct dentry *dentry, struct qstr *qstr) in sysv_hash() argument 35 if (qstr->len > SYSV_NAMELEN) { in sysv_hash() 36 qstr->len = SYSV_NAMELEN; in sysv_hash() 37 qstr->hash = full_name_hash(dentry, qstr->name, qstr->len); in sysv_hash()
|
/linux-4.19.296/fs/ext4/ |
D | xattr_security.c | 55 const struct qstr *qstr) in ext4_init_security() argument 57 return security_inode_init_security(inode, dir, qstr, in ext4_init_security()
|
D | xattr.h | 211 struct inode *dir, const struct qstr *qstr); 214 struct inode *dir, const struct qstr *qstr) in ext4_init_security() argument
|
/linux-4.19.296/fs/hfsplus/ |
D | xattr_security.c | 68 const struct qstr *qstr) in hfsplus_init_security() argument 70 return security_inode_init_security(inode, dir, qstr, in hfsplus_init_security()
|
/linux-4.19.296/fs/ocfs2/ |
D | xattr.h | 58 const struct qstr *, 97 const struct qstr *qstr);
|
/linux-4.19.296/fs/fat/ |
D | namei_vfat.c | 110 static unsigned int vfat_striptail_len(const struct qstr *qstr) in vfat_striptail_len() argument 112 return __vfat_striptail_len(qstr->len, qstr->name); in vfat_striptail_len() 121 static int vfat_hash(const struct dentry *dentry, struct qstr *qstr) in vfat_hash() argument 123 qstr->hash = full_name_hash(dentry, qstr->name, vfat_striptail_len(qstr)); in vfat_hash() 133 static int vfat_hashi(const struct dentry *dentry, struct qstr *qstr) in vfat_hashi() argument 140 name = qstr->name; in vfat_hashi() 141 len = vfat_striptail_len(qstr); in vfat_hashi() 146 qstr->hash = end_name_hash(hash); in vfat_hashi() 155 unsigned int len, const char *str, const struct qstr *name) in vfat_cmpi() 174 unsigned int len, const char *str, const struct qstr *name) in vfat_cmp() [all …]
|
/linux-4.19.296/fs/btrfs/ |
D | xattr.h | 22 const struct qstr *qstr);
|
/linux-4.19.296/fs/f2fs/ |
D | dir.c | 155 struct qstr name = FSTR_TO_QSTR(&fname->disk_name); in find_in_level() 249 const struct qstr *child, struct page **res_page) in f2fs_find_entry() 272 struct qstr dotdot = QSTR_INIT("..", 2); in f2fs_parent_dir() 277 ino_t f2fs_inode_by_name(struct inode *dir, const struct qstr *qstr, in f2fs_inode_by_name() argument 283 de = f2fs_find_entry(dir, qstr, page); in f2fs_inode_by_name() 307 static void init_dent_inode(const struct qstr *name, struct page *ipage) in init_dent_inode() 323 struct qstr dot = QSTR_INIT(".", 1); in f2fs_do_make_empty_dir() 324 struct qstr dotdot = QSTR_INIT("..", 2); in f2fs_do_make_empty_dir() 358 const struct qstr *new_name, const struct qstr *orig_name, in f2fs_init_inode_metadata() 470 const struct qstr *name, f2fs_hash_t name_hash, in f2fs_update_dentry() [all …]
|