Home
last modified time | relevance | path

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

123456

/fs/hpfs/
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()
/fs/adfs/
Ddir.c145 static int __adfs_compare(const unsigned char *qstr, u32 qlen, in __adfs_compare() argument
154 if (adfs_tolower(qstr[i]) != adfs_tolower(str[i])) in __adfs_compare()
160 static int adfs_dir_lookup_byname(struct inode *inode, const struct qstr *qstr, in adfs_dir_lookup_byname() argument
191 name = qstr->name; in adfs_dir_lookup_byname()
192 name_len = qstr->len; in adfs_dir_lookup_byname()
217 adfs_hash(const struct dentry *parent, struct qstr *qstr) in adfs_hash() argument
223 if (qstr->len > ADFS_SB(parent->d_sb)->s_namelen) in adfs_hash()
226 len = qstr->len; in adfs_hash()
227 name = qstr->name; in adfs_hash()
231 qstr->hash = end_name_hash(hash); in adfs_hash()
[all …]
/fs/autofs/
Dwaitq.c224 autofs_find_wait(struct autofs_sb_info *sbi, const struct qstr *qstr) in autofs_find_wait() argument
229 if (wq->name.hash == qstr->hash && in autofs_find_wait()
230 wq->name.len == qstr->len && in autofs_find_wait()
232 !memcmp(wq->name.name, qstr->name, qstr->len)) in autofs_find_wait()
248 const struct qstr *qstr, in validate_request() argument
259 wq = autofs_find_wait(sbi, qstr); in validate_request()
293 wq = autofs_find_wait(sbi, qstr); in validate_request()
352 struct qstr qstr; in autofs_wait() local
393 qstr.len = sprintf(name, "%p", dentry); in autofs_wait()
395 qstr.len = autofs_getpath(sbi, dentry, name); in autofs_wait()
[all …]
Droot.c130 const struct qstr *name = &dentry->d_name; in autofs_lookup_active()
143 const struct qstr *qstr; in autofs_lookup_active() local
154 qstr = &active->d_name; in autofs_lookup_active()
161 if (qstr->len != len) in autofs_lookup_active()
163 if (memcmp(qstr->name, str, len)) in autofs_lookup_active()
185 const struct qstr *name = &dentry->d_name; in autofs_lookup_expiring()
198 const struct qstr *qstr; in autofs_lookup_expiring() local
214 qstr = &expiring->d_name; in autofs_lookup_expiring()
221 if (qstr->len != len) in autofs_lookup_expiring()
223 if (memcmp(qstr->name, str, len)) in autofs_lookup_expiring()
/fs/sdcardfs/
Dpackagelist.c37 struct qstr key;
57 static inline void qstr_init(struct qstr *q, const char *name) in qstr_init()
64 static inline int qstr_copy(const struct qstr *src, struct qstr *dest) in qstr_copy()
72 static appid_t __get_appid(const struct qstr *key) in __get_appid()
92 struct qstr q; in get_appid()
98 static appid_t __get_ext_gid(const struct qstr *key) in __get_ext_gid()
118 struct qstr q; in get_ext_gid()
124 static appid_t __is_excluded(const struct qstr *app_name, userid_t user) in __is_excluded()
143 struct qstr q; in is_excluded()
152 int check_caller_access_to_name(struct inode *parent_node, const struct qstr *name) in check_caller_access_to_name()
[all …]
Ddentry.c144 struct qstr *qstr) in sdcardfs_hash_ci() argument
156 name = qstr->name; in sdcardfs_hash_ci()
157 len = qstr->len; in sdcardfs_hash_ci()
162 qstr->hash = end_name_hash(hash); in sdcardfs_hash_ci()
171 unsigned int len, const char *str, const struct qstr *name) in sdcardfs_cmp_ci()
Dderived_perm.c55 const struct qstr *name) in get_derived_permission_new()
63 struct qstr q_Android = QSTR_LITERAL("Android"); in get_derived_permission_new()
64 struct qstr q_data = QSTR_LITERAL("data"); in get_derived_permission_new()
65 struct qstr q_sandbox = QSTR_LITERAL("sandbox"); in get_derived_permission_new()
66 struct qstr q_obb = QSTR_LITERAL("obb"); in get_derived_permission_new()
67 struct qstr q_media = QSTR_LITERAL("media"); in get_derived_permission_new()
68 struct qstr q_cache = QSTR_LITERAL("cache"); in get_derived_permission_new()
361 struct qstr obb = QSTR_LITERAL("obb"); in need_graft_path()
426 struct qstr q_obb = QSTR_LITERAL("obb"); in is_base_obbpath()
/fs/gfs2/
Ddir.h27 const struct qstr *filename,
29 extern int gfs2_dir_check(struct inode *dir, const struct qstr *filename,
31 extern int gfs2_dir_add(struct inode *inode, const struct qstr *filename,
41 extern 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;
Ddir.c86 struct qstr gfs2_qdot __read_mostly;
87 struct qstr gfs2_qdotdot __read_mostly;
90 const struct qstr *name, void *opaque);
406 const struct qstr *name, int ret) in __gfs2_dirent_find()
417 const struct qstr *name, in gfs2_dirent_find()
424 const struct qstr *name, in gfs2_dirent_prev()
435 const struct qstr *name, in gfs2_dirent_last()
448 const struct qstr *name, in gfs2_dirent_find_offset()
467 const struct qstr *name, in gfs2_dirent_find_space()
487 const struct qstr *name, in gfs2_dirent_gather()
[all …]
/fs/unicode/
Dutf8-core.c12 int utf8_validate(const struct unicode_map *um, const struct qstr *str) in utf8_validate()
23 const struct qstr *s1, const struct qstr *s2) in utf8_strncmp()
50 const struct qstr *s1, const struct qstr *s2) in utf8_strncasecmp()
80 const struct qstr *cf, in utf8_strncasecmp_folded()
81 const struct qstr *s1) in utf8_strncasecmp_folded()
104 int utf8_casefold(const struct unicode_map *um, const struct qstr *str, in utf8_casefold()
128 int utf8_normalize(const struct unicode_map *um, const struct qstr *str, in utf8_normalize()
/fs/hfs/
Dhfs_fs.h181 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 *);
/fs/affs/
Dnamei.c46 __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 …]
/fs/isofs/
Dinode.c38 static int isofs_hashi(const struct dentry *parent, struct qstr *qstr);
40 unsigned int len, const char *str, const struct qstr *name);
43 static int isofs_hashi_ms(const struct dentry *parent, struct qstr *qstr);
44 static int isofs_hash_ms(const struct dentry *parent, struct qstr *qstr);
46 unsigned int len, const char *str, const struct qstr *name);
48 unsigned int len, const char *str, const struct qstr *name);
176 isofs_hashi_common(const struct dentry *dentry, struct qstr *qstr, int ms) in isofs_hashi_common() argument
183 len = qstr->len; in isofs_hashi_common()
184 name = qstr->name; in isofs_hashi_common()
195 qstr->hash = end_name_hash(hash); in isofs_hashi_common()
[all …]
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()
/fs/f2fs/
Ddir.c114 int f2fs_ci_compare(const struct inode *parent, const struct qstr *name, in f2fs_ci_compare()
115 const struct qstr *entry, bool quick) in f2fs_ci_compare()
143 const struct qstr *iname, in f2fs_fname_setup_ci_filename()
177 struct qstr entry; in f2fs_match_name()
189 struct qstr cf = {.name = cf_str->name, in f2fs_match_name()
258 struct qstr name = FSTR_TO_QSTR(&fname->disk_name); in find_in_level()
353 const struct qstr *child, struct page **res_page) in f2fs_find_entry()
384 struct qstr dotdot = QSTR_INIT("..", 2); in f2fs_parent_dir()
389 ino_t f2fs_inode_by_name(struct inode *dir, const struct qstr *qstr, in f2fs_inode_by_name() argument
395 de = f2fs_find_entry(dir, qstr, page); in f2fs_inode_by_name()
[all …]
/fs/proc/
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()
Dgeneric.c382 struct qstr qstr; in __proc_create() local
386 qstr.name = fn; in __proc_create()
387 qstr.len = strlen(fn); in __proc_create()
388 if (qstr.len == 0 || qstr.len >= 256) { in __proc_create()
389 WARN(1, "name len %u\n", qstr.len); in __proc_create()
392 if (qstr.len == 1 && fn[0] == '.') { in __proc_create()
396 if (qstr.len == 2 && fn[0] == '.' && fn[1] == '.') { in __proc_create()
400 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { in __proc_create()
401 WARN(1, "create '/proc/%s' by hand\n", qstr.name); in __proc_create()
413 if (qstr.len + 1 <= SIZEOF_PDE_INLINE_NAME) { in __proc_create()
[all …]
/fs/efivarfs/
Dsuper.c45 const struct qstr *name) in efivarfs_d_compare()
60 static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr) in efivarfs_d_hash() argument
63 const unsigned char *s = qstr->name; in efivarfs_d_hash()
64 unsigned int len = qstr->len; in efivarfs_d_hash()
76 qstr->hash = end_name_hash(hash); in efivarfs_d_hash()
89 struct qstr q; in efivarfs_alloc_dentry()
/fs/fat/
Dnamei_vfat.c111 static unsigned int vfat_striptail_len(const struct qstr *qstr) in vfat_striptail_len() argument
113 return __vfat_striptail_len(qstr->len, qstr->name); in vfat_striptail_len()
122 static int vfat_hash(const struct dentry *dentry, struct qstr *qstr) in vfat_hash() argument
124 qstr->hash = full_name_hash(dentry, qstr->name, vfat_striptail_len(qstr)); in vfat_hash()
134 static int vfat_hashi(const struct dentry *dentry, struct qstr *qstr) in vfat_hashi() argument
141 name = qstr->name; in vfat_hashi()
142 len = vfat_striptail_len(qstr); in vfat_hashi()
147 qstr->hash = end_name_hash(hash); in vfat_hashi()
156 unsigned int len, const char *str, const struct qstr *name) in vfat_cmpi()
175 unsigned int len, const char *str, const struct qstr *name) in vfat_cmp()
[all …]
/fs/ext2/
Dxattr.h108 const struct qstr *qstr);
111 const struct qstr *qstr) in ext2_init_security() argument
Dxattr_security.c48 const struct qstr *qstr) in ext2_init_security() argument
50 return security_inode_init_security(inode, dir, qstr, in ext2_init_security()
/fs/reiserfs/
Dxattr.h36 const struct qstr *qstr,
102 const struct qstr *qstr, in reiserfs_security_init() argument
/fs/jfs/
Djfs_xattr.h53 const struct qstr *);
56 struct inode *dir, const struct qstr *qstr) in jfs_init_security() argument
/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()
/fs/ext4/
Dxattr_security.c55 const struct qstr *qstr) in ext4_init_security() argument
57 return security_inode_init_security(inode, dir, qstr, in ext4_init_security()

123456