/fs/nilfs2/ |
D | sysfs.h | 53 #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/ |
D | waitq.c | 33 kfree(wq->name.name - wq->offset); 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/ |
D | xattr.c | 56 xattr_resolve_name(struct inode *inode, const char **name) in xattr_resolve_name() argument 69 n = strcmp_prefix(*name, xattr_prefix(handler)); in xattr_resolve_name() 76 *name = n; in xattr_resolve_name() 89 const char *name, int mask) in xattr_permission() argument 111 if (!strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) || in xattr_permission() 112 !strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in xattr_permission() 118 if (!strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) { in xattr_permission() 129 if (!strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) { in xattr_permission() 170 struct inode *inode, const char *name, const void *value, in __vfs_setxattr() argument 175 handler = xattr_resolve_name(inode, &name); in __vfs_setxattr() [all …]
|
D | filesystems.c | 49 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() 78 !fs_validate_description(fs->name, fs->parameters)) in register_filesystem() 81 BUG_ON(strchr(fs->name, '.')); in register_filesystem() 85 p = find_filesystem(fs->name, strlen(fs->name)); in register_filesystem() 135 struct filename *name; in fs_index() local 138 name = getname(__name); in fs_index() 139 err = PTR_ERR(name); in fs_index() 140 if (IS_ERR(name)) in fs_index() [all …]
|
D | fs_parser.c | 27 __lookup_constant(const struct constant_table *tbl, const char *name) in __lookup_constant() argument 29 for ( ; tbl->name; tbl++) in __lookup_constant() 30 if (strcmp(name, tbl->name) == 0) in __lookup_constant() 41 int lookup_constant(const struct constant_table *tbl, const char *name, int not_found) in lookup_constant() argument 43 const struct constant_table *p = __lookup_constant(tbl, name); in lookup_constant() 59 const char *name = param->key; in fs_lookup_key() local 63 for (p = desc; p->name; p++) { in fs_lookup_key() 64 if (strcmp(p->name, name) != 0) in fs_lookup_key() 71 if (name[0] == 'n' && name[1] == 'o' && name[2]) { in fs_lookup_key() 72 for (p = desc; p->name; p++) { in fs_lookup_key() [all …]
|
/fs/orangefs/ |
D | orangefs-sysfs.c | 195 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/ |
D | hostfs_kern.c | 86 static char *__dentry_name(struct dentry *dentry, char *name) in __dentry_name() argument 88 char *p = dentry_path_raw(dentry, name, PATH_MAX); in __dentry_name() 95 __putname(name); in __dentry_name() 103 BUG_ON(p + strlen(p) + 1 != name + PATH_MAX); in __dentry_name() 105 strlcpy(name, root, PATH_MAX); in __dentry_name() 106 if (len > p - name) { in __dentry_name() 107 __putname(name); in __dentry_name() 111 if (p > name + len) in __dentry_name() 112 strcpy(name + len, p); in __dentry_name() 114 return name; in __dentry_name() [all …]
|
/fs/proc/ |
D | generic.c | 41 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() 163 static int __xlate_proc_name(const char *name, struct proc_dir_entry **ret, in __xlate_proc_name() argument 166 const char *cp = name, *next; in __xlate_proc_name() 173 WARN(1, "name '%s'\n", name); in __xlate_proc_name() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_dir2.c | 57 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() 246 struct xfs_name *name, in xfs_dir_createname() argument 268 args->name = name->name; in xfs_dir_createname() 269 args->namelen = name->len; in xfs_dir_createname() 270 args->filetype = name->type; in xfs_dir_createname() [all …]
|
/fs/afs/ |
D | dir_edit.c | 110 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 = afs_dir_calc_slots(name->len); in afs_edit_dir_add() 292 trace_afs_edit_dir(vnode, why, afs_edit_dir_create_nospc, 0, 0, 0, 0, name->name); in afs_edit_dir_add() 309 new_fid->vnode, new_fid->unique, name->name); in afs_edit_dir_add() 316 memcpy(de->u.name, name->name, name->len + 1); in afs_edit_dir_add() [all …]
|
/fs/ocfs2/ |
D | ocfs2_trace.h | 22 #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/coda/ |
D | dir.c | 44 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() 140 const char *name=de->d_name.name; in coda_create() local 146 if (is_root_inode(dir) && coda_iscontrol(name, length)) in coda_create() 149 error = venus_create(dir->i_sb, coda_i2f(dir), name, length, in coda_create() 174 const char *name = de->d_name.name; in coda_mkdir() local 179 if (is_root_inode(dir) && coda_iscontrol(name, len)) in coda_mkdir() 184 name, len, &newfid, &attrs); in coda_mkdir() 209 const char * name = de->d_name.name; in coda_link() local [all …]
|
/fs/crypto/ |
D | fname.c | 77 if (str->len == 1 && str->name[0] == '.') in fscrypt_is_dot_dotdot() 80 if (str->len == 2 && str->name[0] == '.' && str->name[1] == '.') in fscrypt_is_dot_dotdot() 115 memcpy(out, iname->name, iname->len); in fscrypt_fname_encrypt() 177 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt() 178 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt() 187 oname->len = strnlen(oname->name, iname->len); in fname_decrypt() 325 crypto_str->name = kmalloc(max_presented_len + 1, GFP_NOFS); in fscrypt_fname_alloc_buffer() 326 if (!crypto_str->name) in fscrypt_fname_alloc_buffer() 343 kfree(crypto_str->name); in fscrypt_fname_free_buffer() 344 crypto_str->name = NULL; in fscrypt_fname_free_buffer() [all …]
|
/fs/ocfs2/dlm/ |
D | dlmmaster.c | 55 const char *name, in dlm_mle_equal() argument 62 memcmp(name, mle->mname, namelen) != 0) in dlm_mle_equal() 77 const char *name, 83 char *name, unsigned int namelen); 101 const char *name, unsigned int namelen, 252 const char *name, in dlm_init_mle() argument 278 memcpy(mle->mname, res->lockname.name, res->lockname.len); in dlm_init_mle() 282 BUG_ON(!name); in dlm_init_mle() 284 memcpy(mle->mname, name, namelen); in dlm_init_mle() 286 mle->mnamehash = dlm_lockid_hash(name, namelen); in dlm_init_mle() [all …]
|
D | dlmthread.c | 115 dlm->name, res->lockname.len, res->lockname.name); in __dlm_lockres_calc_usage() 124 dlm->name, res->lockname.len, res->lockname.name); in __dlm_lockres_calc_usage() 158 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres() 166 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres() 178 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres() 201 mlog(0, "%s: Purging res %.*s, master %d\n", dlm->name, in dlm_purge_lockres() 202 res->lockname.len, res->lockname.name, master); in dlm_purge_lockres() 207 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres() 234 dlm->name, res->lockname.len, res->lockname.name, master); in dlm_purge_lockres() 242 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres() [all …]
|
/fs/btrfs/ |
D | xattr.c | 23 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() 227 int btrfs_setxattr_trans(struct inode *inode, const char *name, in btrfs_setxattr_trans() argument [all …]
|
/fs/efivarfs/ |
D | super.c | 46 const struct qstr *name) in efivarfs_d_compare() argument 50 if (name->len != len) in efivarfs_d_compare() 54 if (memcmp(str, name->name, guid)) in efivarfs_d_compare() 58 return strncasecmp(name->name + guid, str + guid, EFI_VARIABLE_GUID_LEN); in efivarfs_d_compare() 64 const unsigned char *s = qstr->name; in efivarfs_d_hash() 87 static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name) in efivarfs_alloc_dentry() argument 93 q.name = name; in efivarfs_alloc_dentry() 94 q.len = strlen(name); in efivarfs_alloc_dentry() 115 char *name; in efivarfs_callback() local 130 name = kmalloc(len + 1 + EFI_VARIABLE_GUID_LEN + 1, GFP_KERNEL); in efivarfs_callback() [all …]
|
/fs/hpfs/ |
D | name.c | 42 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/erofs/ |
D | namei.c | 11 const unsigned char *name; member 27 DBG_BUGON(qd->name > qd->end); in erofs_dirnamecmp() 31 while (qd->name + i < qd->end && qd->name[i] != '\0') { in erofs_dirnamecmp() 32 if (qn->name[i] != qd->name[i]) { in erofs_dirnamecmp() 34 return qn->name[i] > qd->name[i] ? 1 : -1; in erofs_dirnamecmp() 40 return qn->name[i] == '\0' ? 0 : 1; in erofs_dirnamecmp() 45 static struct erofs_dirent *find_target_dirent(struct erofs_qstr *name, in find_target_dirent() argument 65 .name = data + nameoff, in find_target_dirent() 73 int ret = erofs_dirnamecmp(name, &dname, &matched); in find_target_dirent() 90 struct erofs_qstr *name, in find_target_block_classic() argument [all …]
|
/fs/nfs/ |
D | nfstrace.h | 181 #define DEFINE_NFS_INODE_EVENT(name) \ argument 182 DEFINE_EVENT(nfs_inode_event, name, \ 187 #define DEFINE_NFS_INODE_EVENT_DONE(name) \ argument 188 DEFINE_EVENT(nfs_inode_event_done, name, \ 314 __string(name, dentry->d_name.name) 321 __assign_str(name, dentry->d_name.name); 330 __get_str(name) 334 #define DEFINE_NFS_LOOKUP_EVENT(name) \ argument 335 DEFINE_EVENT(nfs_lookup_event, name, \ 358 __string(name, dentry->d_name.name) [all …]
|
/fs/tracefs/ |
D | inode.c | 51 int (*mkdir)(const char *name); 52 int (*rmdir)(const char *name); 58 char *name; in get_dname() local 61 dname = dentry->d_name.name; in get_dname() 62 name = kmalloc(len + 1, GFP_KERNEL); in get_dname() 63 if (!name) in get_dname() 65 memcpy(name, dname, len); in get_dname() 66 name[len] = 0; in get_dname() 67 return name; in get_dname() 74 char *name; in tracefs_syscall_mkdir() local [all …]
|
/fs/sysfs/ |
D | symlink.c | 22 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 …]
|
/fs/ksmbd/mgmt/ |
D | share_config.c | 30 static unsigned int share_name_hash(const char *name) in share_name_hash() argument 32 return jhash(name, strlen(name), 0); in share_name_hash() 50 kfree(share->name); in kill_share() 76 static struct ksmbd_share_config *__share_lookup(const char *name) in __share_lookup() argument 79 unsigned int key = share_name_hash(name); in __share_lookup() 82 if (!strcmp(name, share->name)) in __share_lookup() 124 const char *name) in share_config_request() argument 131 resp = ksmbd_ipc_share_config_request(name); in share_config_request() 145 equal = !strcmp(cf_resp_name, name); in share_config_request() 158 share->name = kstrdup(name, GFP_KERNEL); in share_config_request() [all …]
|
/fs/ceph/ |
D | xattr.c | 21 static bool ceph_is_valid_xattr(const char *name) in ceph_is_valid_xattr() argument 23 return !strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) || in ceph_is_valid_xattr() 24 !strncmp(name, XATTR_CEPH_PREFIX, XATTR_CEPH_PREFIX_LEN) || in ceph_is_valid_xattr() 25 !strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN) || in ceph_is_valid_xattr() 26 !strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN); in ceph_is_valid_xattr() 34 char *name; member 361 .name = CEPH_XATTR_NAME(_type, _name), \ 371 .name = CEPH_XATTR_NAME(_type, _name), \ 379 .name = CEPH_XATTR_NAME2(_type, _name, _field), \ 387 .name = CEPH_XATTR_NAME(_type, _name), \ [all …]
|
/fs/gfs2/ |
D | dir.h | 59 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()
|