/linux-6.12.1/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-6.12.1/include/linux/ |
D | unicode.h | 56 int utf8_validate(const struct unicode_map *um, const struct qstr *str); 59 const struct qstr *s1, const struct qstr *s2); 62 const struct qstr *s1, const struct qstr *s2); 64 const struct qstr *cf, 65 const struct qstr *s1); 67 int utf8_normalize(const struct unicode_map *um, const struct qstr *str, 70 int utf8_casefold(const struct unicode_map *um, const struct qstr *str, 74 struct qstr *str);
|
D | dcache.h | 49 struct qstr { struct 61 extern const struct qstr empty_name; argument 62 extern const struct qstr slash_name; 63 extern const struct qstr dotdot_name; 88 struct qstr d_name; 141 int (*d_hash)(const struct dentry *, struct qstr *); 143 unsigned int, const char *, const struct qstr *); 236 extern struct dentry * d_alloc(struct dentry *, 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 …]
|
D | evm.h | 22 const struct qstr *qstr, struct xattr *xattrs, 57 const struct qstr *qstr, in evm_inode_init_security() argument
|
/linux-6.12.1/fs/gfs2/ |
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;
|
/linux-6.12.1/fs/bcachefs/ |
D | dirent.h | 19 struct qstr; 26 struct qstr bch2_dirent_get_name(struct bkey_s_c_dirent d); 46 const struct qstr *, u64, u64 *, 50 const struct qstr *, u64, u64 *, 67 const struct qstr *, subvol_inum *, u64 *, 68 const struct qstr *, subvol_inum *, u64 *, 73 const struct qstr *, subvol_inum *, unsigned); 76 const struct qstr *, subvol_inum *);
|
D | fs-common.h | 17 const struct qstr *, 26 const struct qstr *); 31 const struct qstr *, bool); 38 const struct qstr *, 39 const struct qstr *,
|
D | dirent.c | 35 struct qstr bch2_dirent_get_name(struct bkey_s_c_dirent d) in bch2_dirent_get_name() 37 return (struct qstr) QSTR_INIT(d.v->d_name, bch2_dirent_name_bytes(d)); in bch2_dirent_get_name() 41 const struct qstr *name) in bch2_dirent_hash() 60 struct qstr name = bch2_dirent_get_name(d); in dirent_hash_bkey() 68 const struct qstr l_name = bch2_dirent_get_name(l); in dirent_cmp_key() 69 const struct qstr *r_name = _r; in dirent_cmp_key() 78 const struct qstr l_name = bch2_dirent_get_name(l); in dirent_cmp_bkey() 79 const struct qstr r_name = bch2_dirent_get_name(r); in dirent_cmp_bkey() 107 struct qstr d_name = bch2_dirent_get_name(d); in bch2_dirent_validate() 152 struct qstr d_name = bch2_dirent_get_name(d); in bch2_dirent_to_text() [all …]
|
/linux-6.12.1/fs/autofs/ |
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-6.12.1/fs/unicode/ |
D | utf8-core.c | 12 int utf8_validate(const struct unicode_map *um, const struct qstr *str) in utf8_validate() 21 const struct qstr *s1, const struct qstr *s2) in utf8_strncmp() 47 const struct qstr *s1, const struct qstr *s2) in utf8_strncasecmp() 76 const struct qstr *cf, in utf8_strncasecmp_folded() 77 const struct qstr *s1) in utf8_strncasecmp_folded() 99 int utf8_casefold(const struct unicode_map *um, const struct qstr *str, in utf8_casefold() 122 struct qstr *str) in utf8_casefold_hash() 141 int utf8_normalize(const struct unicode_map *um, const struct qstr *str, in utf8_normalize()
|
/linux-6.12.1/fs/adfs/ |
D | dir.c | 332 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-6.12.1/fs/proc/ |
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()
|
D | generic.c | 398 struct qstr qstr; in __proc_create() local 402 qstr.name = fn; in __proc_create() 403 qstr.len = strlen(fn); in __proc_create() 404 if (qstr.len == 0 || qstr.len >= 256) { in __proc_create() 405 WARN(1, "name len %u\n", qstr.len); in __proc_create() 408 if (qstr.len == 1 && fn[0] == '.') { in __proc_create() 412 if (qstr.len == 2 && fn[0] == '.' && fn[1] == '.') { in __proc_create() 416 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { in __proc_create() 417 WARN(1, "create '/proc/%s' by hand\n", qstr.name); in __proc_create() 429 if (qstr.len + 1 <= SIZEOF_PDE_INLINE_NAME) { in __proc_create() [all …]
|
/linux-6.12.1/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 *); 206 extern struct inode *hfs_new_inode(struct inode *, const 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 *, const struct qstr *);
|
/linux-6.12.1/fs/isofs/ |
D | inode.c | 39 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 …]
|
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-6.12.1/fs/affs/ |
D | namei.c | 46 __affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr, toupper_t fn, bool notruncate) 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 fn, in __affs_compare_dentry() [all …]
|
/linux-6.12.1/fs/ext2/ |
D | xattr.h | 109 const struct qstr *qstr); 112 const struct qstr *qstr) in ext2_init_security() argument
|
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-6.12.1/fs/btrfs/ |
D | xattr.h | 11 struct qstr; 27 const struct qstr *qstr);
|
/linux-6.12.1/fs/reiserfs/ |
D | xattr.h | 37 const struct qstr *qstr, 103 const struct qstr *qstr, in reiserfs_security_init() argument
|
/linux-6.12.1/fs/jfs/ |
D | jfs_xattr.h | 53 const struct qstr *); 56 struct inode *dir, const struct qstr *qstr) in jfs_init_security() argument
|
/linux-6.12.1/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-6.12.1/fs/ext4/ |
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()
|
/linux-6.12.1/fs/ocfs2/ |
D | xattr.h | 48 const struct qstr *, 87 const struct qstr *qstr);
|