Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 666) sorted by relevance

12345678910>>...27

/fs/nilfs2/
Dsysfs.h53 #define NILFS_COMMON_ATTR_STRUCT(name) \ argument
54 struct nilfs_##name##_attr { \
64 #define NILFS_DEV_ATTR_STRUCT(name) \ argument
65 struct nilfs_##name##_attr { \
67 ssize_t (*show)(struct nilfs_##name##_attr *, struct the_nilfs *, \
69 ssize_t (*store)(struct nilfs_##name##_attr *, struct the_nilfs *, \
80 #define NILFS_CP_ATTR_STRUCT(name) \ argument
81 struct nilfs_##name##_attr { \
83 ssize_t (*show)(struct nilfs_##name##_attr *, struct nilfs_root *, \
85 ssize_t (*store)(struct nilfs_##name##_attr *, struct nilfs_root *, \
[all …]
/fs/autofs/
Dwaitq.c33 kfree(wq->name.name); in autofs_catatonic_mode()
34 wq->name.name = NULL; in autofs_catatonic_mode()
94 wq->name.len, wq->name.name, type); in autofs_notify_daemon()
110 mp->len = wq->name.len; in autofs_notify_daemon()
111 memcpy(mp->name, wq->name.name, wq->name.len); in autofs_notify_daemon()
112 mp->name[wq->name.len] = '\0'; in autofs_notify_daemon()
123 ep->len = wq->name.len; in autofs_notify_daemon()
124 memcpy(ep->name, wq->name.name, wq->name.len); in autofs_notify_daemon()
125 ep->name[wq->name.len] = '\0'; in autofs_notify_daemon()
143 packet->len = wq->name.len; in autofs_notify_daemon()
[all …]
/fs/
Dxattr.c54 xattr_resolve_name(struct inode *inode, const char **name) in xattr_resolve_name() argument
67 n = strcmp_prefix(*name, xattr_prefix(handler)); in xattr_resolve_name()
74 *name = n; in xattr_resolve_name()
86 xattr_permission(struct inode *inode, const char *name, int mask) in xattr_permission() argument
108 if (!strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) || in xattr_permission()
109 !strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in xattr_permission()
115 if (!strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) { in xattr_permission()
126 if (!strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) { in xattr_permission()
138 __vfs_setxattr(struct dentry *dentry, struct inode *inode, const char *name, in __vfs_setxattr() argument
143 handler = xattr_resolve_name(inode, &name); in __vfs_setxattr()
[all …]
Dfs_parser.c33 const char *name, int not_found) in __lookup_constant() argument
38 if (strcmp(name, tbl[i].name) == 0) in __lookup_constant()
47 const char *name) in fs_lookup_key() argument
54 for (p = desc->specs; p->name; p++) in fs_lookup_key()
55 if (strcmp(p->name, name) == 0) in fs_lookup_key()
114 desc->name, param->key); in fs_parse()
150 desc->name, param->key); in fs_parse()
190 for (e = desc->enums; e->name[0]; e++) { in fs_parse()
192 strcmp(e->name, param->string) == 0) { in fs_parse()
240 return invalf(fc, "%s: Bad value for '%s'", desc->name, param->key); in fs_parse()
[all …]
Dfilesystems.c49 static struct file_system_type **find_filesystem(const char *name, unsigned len) in find_filesystem() argument
53 if (strncmp((*p)->name, name, len) == 0 && in find_filesystem()
54 !(*p)->name[len]) in find_filesystem()
80 BUG_ON(strchr(fs->name, '.')); in register_filesystem()
84 p = find_filesystem(fs->name, strlen(fs->name)); in register_filesystem()
134 struct filename *name; in fs_index() local
137 name = getname(__name); in fs_index()
138 err = PTR_ERR(name); in fs_index()
139 if (IS_ERR(name)) in fs_index()
145 if (strcmp(tmp->name, name->name) == 0) { in fs_index()
[all …]
/fs/orangefs/
Dorangefs-sysfs.c195 if (!strcmp(kobj->name, PC_KOBJ_ID) || in orangefs_attr_store()
196 !strcmp(kobj->name, STATS_KOBJ_ID)) in orangefs_attr_store()
216 kobj->name); in sysfs_int_show()
218 if (!strcmp(kobj->name, ORANGEFS_KOBJ_ID)) { in sysfs_int_show()
219 if (!strcmp(attr->attr.name, "op_timeout_secs")) { in sysfs_int_show()
225 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
232 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
239 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
246 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
257 } else if (!strcmp(kobj->name, STATS_KOBJ_ID)) { in sysfs_int_show()
[all …]
/fs/hostfs/
Dhostfs_kern.c84 static char *__dentry_name(struct dentry *dentry, char *name) in __dentry_name() argument
86 char *p = dentry_path_raw(dentry, name, PATH_MAX); in __dentry_name()
93 __putname(name); in __dentry_name()
101 BUG_ON(p + strlen(p) + 1 != name + PATH_MAX); in __dentry_name()
103 strlcpy(name, root, PATH_MAX); in __dentry_name()
104 if (len > p - name) { in __dentry_name()
105 __putname(name); in __dentry_name()
109 if (p > name + len) in __dentry_name()
110 strcpy(name + len, p); in __dentry_name()
112 return name; in __dentry_name()
[all …]
/fs/proc/
Dgeneric.c41 if (pde->name != pde->inline_name) in pde_free()
42 kfree(pde->name); in pde_free()
46 static int proc_match(const char *name, struct proc_dir_entry *de, unsigned int len) in proc_match() argument
53 return memcmp(name, de->name, len); in proc_match()
69 const char *name, in pde_subdir_find() argument
78 int result = proc_match(name, de, len); in pde_subdir_find()
101 int result = proc_match(de->name, this, de->namelen); in pde_subdir_insert()
161 static int __xlate_proc_name(const char *name, struct proc_dir_entry **ret, in __xlate_proc_name() argument
164 const char *cp = name, *next; in __xlate_proc_name()
180 WARN(1, "name '%s'\n", name); in __xlate_proc_name()
[all …]
/fs/afs/
Ddir_edit.c110 static int afs_dir_scan_block(union afs_xdr_dir_block *block, struct qstr *name, in afs_dir_scan_block() argument
138 len = strlen(de->u.name); in afs_dir_scan_block()
139 if (len == name->len && in afs_dir_scan_block()
140 memcmp(de->u.name, name->name, name->len) == 0) in afs_dir_scan_block()
187 struct qstr *name, struct afs_fid *new_fid, in afs_edit_dir_add() argument
200 _enter(",,{%d,%s},", name->len, name->name); in afs_edit_dir_add()
218 need_slots = round_up(12 + name->len + 1 + 4, AFS_DIR_DIRENT_SIZE); in afs_edit_dir_add()
295 trace_afs_edit_dir(vnode, why, afs_edit_dir_create_nospc, 0, 0, 0, 0, name->name); in afs_edit_dir_add()
312 new_fid->vnode, new_fid->unique, name->name); in afs_edit_dir_add()
319 memcpy(de->u.name, name->name, name->len + 1); in afs_edit_dir_add()
[all …]
/fs/coda/
Ddir.c44 const char *name = entry->d_name.name; in coda_lookup() local
56 if (is_root_inode(dir) && coda_iscontrol(name, length)) { in coda_lookup()
61 int error = venus_lookup(sb, coda_i2f(dir), name, length, in coda_lookup()
138 const char *name=de->d_name.name; in coda_create() local
144 if (is_root_inode(dir) && coda_iscontrol(name, length)) in coda_create()
147 error = venus_create(dir->i_sb, coda_i2f(dir), name, length, in coda_create()
171 const char *name = de->d_name.name; in coda_mkdir() local
176 if (is_root_inode(dir) && coda_iscontrol(name, len)) in coda_mkdir()
181 name, len, &newfid, &attrs); in coda_mkdir()
206 const char * name = de->d_name.name; in coda_link() local
[all …]
/fs/ocfs2/
Docfs2_trace.h22 #define DEFINE_OCFS2_INT_EVENT(name) \ argument
23 DEFINE_EVENT(ocfs2__int, name, \
39 #define DEFINE_OCFS2_UINT_EVENT(name) \ argument
40 DEFINE_EVENT(ocfs2__uint, name, \
56 #define DEFINE_OCFS2_ULL_EVENT(name) \ argument
57 DEFINE_EVENT(ocfs2__ull, name, \
73 #define DEFINE_OCFS2_POINTER_EVENT(name) \ argument
74 DEFINE_EVENT(ocfs2__pointer, name, \
79 TP_PROTO(const char *name),
80 TP_ARGS(name),
[all …]
/fs/crypto/
Dfname.c97 if (str->len == 1 && str->name[0] == '.') in fscrypt_is_dot_dotdot()
100 if (str->len == 2 && str->name[0] == '.' && str->name[1] == '.') in fscrypt_is_dot_dotdot()
134 memcpy(out, iname->name, iname->len); in fscrypt_fname_encrypt()
195 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt()
196 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt()
205 oname->len = strnlen(oname->name, iname->len); in fname_decrypt()
305 crypto_str->name = kmalloc(max_presented_len + 1, GFP_NOFS); in fscrypt_fname_alloc_buffer()
306 if (!crypto_str->name) in fscrypt_fname_alloc_buffer()
323 kfree(crypto_str->name); in fscrypt_fname_free_buffer()
324 crypto_str->name = NULL; in fscrypt_fname_free_buffer()
[all …]
/fs/nfs/
Dnfstrace.h171 #define DEFINE_NFS_INODE_EVENT(name) \ argument
172 DEFINE_EVENT(nfs_inode_event, name, \
177 #define DEFINE_NFS_INODE_EVENT_DONE(name) \ argument
178 DEFINE_EVENT(nfs_inode_event_done, name, \
250 __string(name, dentry->d_name.name)
257 __assign_str(name, dentry->d_name.name);
266 __get_str(name)
270 #define DEFINE_NFS_LOOKUP_EVENT(name) \ argument
271 DEFINE_EVENT(nfs_lookup_event, name, \
294 __string(name, dentry->d_name.name)
[all …]
/fs/ocfs2/dlm/
Ddlmmaster.c57 const char *name, in dlm_mle_equal() argument
64 memcmp(name, mle->mname, namelen) != 0) in dlm_mle_equal()
79 const char *name,
85 char *name, unsigned int namelen);
103 const char *name, unsigned int namelen,
254 const char *name, in dlm_init_mle() argument
280 memcpy(mle->mname, res->lockname.name, res->lockname.len); in dlm_init_mle()
284 BUG_ON(!name); in dlm_init_mle()
286 memcpy(mle->mname, name, namelen); in dlm_init_mle()
288 mle->mnamehash = dlm_lockid_hash(name, namelen); in dlm_init_mle()
[all …]
Ddlmthread.c119 dlm->name, res->lockname.len, res->lockname.name); in __dlm_lockres_calc_usage()
128 dlm->name, res->lockname.len, res->lockname.name); in __dlm_lockres_calc_usage()
162 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres()
170 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres()
182 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres()
205 mlog(0, "%s: Purging res %.*s, master %d\n", dlm->name, in dlm_purge_lockres()
206 res->lockname.len, res->lockname.name, master); in dlm_purge_lockres()
211 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres()
238 dlm->name, res->lockname.len, res->lockname.name, master); in dlm_purge_lockres()
246 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres()
[all …]
/fs/btrfs/
Dxattr.c23 int btrfs_getxattr(struct inode *inode, const char *name, in btrfs_getxattr() argument
39 name, strlen(name), 0); in btrfs_getxattr()
80 const char *name, const void *value, size_t size, int flags) in btrfs_setxattr() argument
86 size_t name_len = strlen(name); in btrfs_setxattr()
101 btrfs_ino(BTRFS_I(inode)), name, name_len, -1); in btrfs_setxattr()
121 btrfs_ino(BTRFS_I(inode)), name, name_len, 0); in btrfs_setxattr()
133 name, name_len, value, size); in btrfs_setxattr()
142 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in btrfs_setxattr()
149 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in btrfs_setxattr()
225 int btrfs_setxattr_trans(struct inode *inode, const char *name, in btrfs_setxattr_trans() argument
[all …]
/fs/efivarfs/
Dsuper.c45 const struct qstr *name) in efivarfs_d_compare() argument
49 if (name->len != len) in efivarfs_d_compare()
53 if (memcmp(str, name->name, guid)) in efivarfs_d_compare()
57 return strncasecmp(name->name + guid, str + guid, EFI_VARIABLE_GUID_LEN); in efivarfs_d_compare()
63 const unsigned char *s = qstr->name; in efivarfs_d_hash()
86 static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name) in efivarfs_alloc_dentry() argument
92 q.name = name; in efivarfs_alloc_dentry()
93 q.len = strlen(name); in efivarfs_alloc_dentry()
114 char *name; in efivarfs_callback() local
129 name = kmalloc(len + 1 + EFI_VARIABLE_GUID_LEN + 1, GFP_KERNEL); in efivarfs_callback()
[all …]
/fs/xfs/libxfs/
Dxfs_dir2.c57 struct xfs_name *name) in xfs_ascii_ci_hashname() argument
62 for (i = 0, hash = 0; i < name->len; i++) in xfs_ascii_ci_hashname()
63 hash = tolower(name->name[i]) ^ rol32(hash, 7); in xfs_ascii_ci_hashname()
71 const unsigned char *name, in xfs_ascii_ci_compname() argument
82 if (args->name[i] == name[i]) in xfs_ascii_ci_compname()
84 if (tolower(args->name[i]) != tolower(name[i])) in xfs_ascii_ci_compname()
240 struct xfs_name *name, in xfs_dir_createname() argument
262 args->name = name->name; in xfs_dir_createname()
263 args->namelen = name->len; in xfs_dir_createname()
264 args->filetype = name->type; in xfs_dir_createname()
[all …]
/fs/erofs/
Dnamei.c12 const unsigned char *name; member
28 DBG_BUGON(qd->name > qd->end); in erofs_dirnamecmp()
32 while (qd->name + i < qd->end && qd->name[i] != '\0') { in erofs_dirnamecmp()
33 if (qn->name[i] != qd->name[i]) { in erofs_dirnamecmp()
35 return qn->name[i] > qd->name[i] ? 1 : -1; in erofs_dirnamecmp()
41 return qn->name[i] == '\0' ? 0 : 1; in erofs_dirnamecmp()
46 static struct erofs_dirent *find_target_dirent(struct erofs_qstr *name, in find_target_dirent() argument
66 .name = data + nameoff, in find_target_dirent()
74 int ret = erofs_dirnamecmp(name, &dname, &matched); in find_target_dirent()
91 struct erofs_qstr *name, in find_target_block_classic() argument
[all …]
/fs/hpfs/
Dname.c42 int hpfs_chk_name(const unsigned char *name, unsigned *len) in hpfs_chk_name() argument
46 hpfs_adjust_length(name, len); in hpfs_chk_name()
48 for (i = 0; i < *len; i++) if (not_allowed_char(name[i])) return -EINVAL; in hpfs_chk_name()
49 if (*len == 1) if (name[0] == '.') return -EINVAL; in hpfs_chk_name()
50 if (*len == 2) if (name[0] == '.' && name[1] == '.') return -EINVAL; in hpfs_chk_name()
93 int hpfs_is_name_long(const unsigned char *name, unsigned len) in hpfs_is_name_long() argument
96 for (i = 0; i < len && name[i] != '.'; i++) in hpfs_is_name_long()
97 if (no_dos_char(name[i])) return 1; in hpfs_is_name_long()
101 if (name[j] == '.' || no_dos_char(name[i])) return 1; in hpfs_is_name_long()
107 void hpfs_adjust_length(const unsigned char *name, unsigned *len) in hpfs_adjust_length() argument
[all …]
/fs/sysfs/
Dsymlink.c22 const char *name, int warn) in sysfs_do_create_link_sd() argument
26 if (WARN_ON(!name || !parent)) in sysfs_do_create_link_sd()
44 kn = kernfs_create_link(parent, name, target); in sysfs_do_create_link_sd()
51 sysfs_warn_dup(parent, name); in sysfs_do_create_link_sd()
62 const char *name) in sysfs_create_link_sd() argument
64 return sysfs_do_create_link_sd(kn, target, name, 1); in sysfs_create_link_sd()
68 const char *name, int warn) in sysfs_do_create_link() argument
80 return sysfs_do_create_link_sd(parent, target, name, warn); in sysfs_do_create_link()
90 const char *name) in sysfs_create_link() argument
92 return sysfs_do_create_link(kobj, target, name, 1); in sysfs_create_link()
[all …]
Dgroup.c27 kernfs_remove_by_name(parent, (*attr)->name); in remove_files()
30 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); in remove_files()
51 kernfs_remove_by_name(parent, (*attr)->name); in create_files()
60 (*attr)->name, mode); in create_files()
80 (*bin_attr)->attr.name); in create_files()
89 (*bin_attr)->attr.name, mode); in create_files()
123 kobj->name, grp->name ?: ""); in internal_create_group()
127 if (grp->name) { in internal_create_group()
129 kn = kernfs_find_and_get(kobj->sd, grp->name); in internal_create_group()
132 kobj->name, grp->name); in internal_create_group()
[all …]
/fs/overlayfs/
Dnamei.c19 struct qstr name; member
51 memcpy(buf, d->name.name, prelen); in ovl_check_redirect()
57 d->name.name = d->redirect; in ovl_check_redirect()
58 d->name.len = strlen(d->redirect); in ovl_check_redirect()
107 static struct ovl_fh *ovl_get_fh(struct dentry *dentry, const char *name) in ovl_get_fh() argument
113 res = ovl_do_vfs_getxattr(dentry, name, NULL, 0); in ovl_get_fh()
127 res = ovl_do_vfs_getxattr(dentry, name, fh, res); in ovl_get_fh()
197 const char *name, unsigned int namelen, in ovl_lookup_single() argument
205 this = lookup_positive_unlocked(name, base, namelen); in ovl_lookup_single()
284 size_t rem = d->name.len - 1; in ovl_lookup_layer()
[all …]
/fs/gfs2/
Ddir.h59 static inline void gfs2_str2qstr(struct qstr *name, const char *fname) in gfs2_str2qstr() argument
61 name->name = fname; in gfs2_str2qstr()
62 name->len = strlen(fname); in gfs2_str2qstr()
63 name->hash = gfs2_disk_hash(name->name, name->len); in gfs2_str2qstr()
67 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument
71 dent->de_hash = cpu_to_be32(name->hash); in gfs2_qstr2dirent()
73 dent->de_name_len = cpu_to_be16(name->len); in gfs2_qstr2dirent()
76 memcpy(dent + 1, name->name, name->len); in gfs2_qstr2dirent()
/fs/jfs/
Dxattr.c84 static int is_known_namespace(const char *name) in is_known_namespace() argument
86 if (strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) && in is_known_namespace()
87 strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) && in is_known_namespace()
88 strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) && in is_known_namespace()
89 strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) in is_known_namespace()
97 if (is_known_namespace(ea->name)) in name_size()
107 if (!is_known_namespace(ea->name)) { in copy_name()
112 memcpy(buffer, ea->name, ea->namelen); in copy_name()
655 int __jfs_setxattr(tid_t tid, struct inode *inode, const char *name, in __jfs_setxattr() argument
664 int namelen = strlen(name); in __jfs_setxattr()
[all …]

12345678910>>...27