/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 …]
|
D | anon_inodes.c | 36 dentry->d_name.name); in anon_inodefs_dname() 53 .name = "anon_inodefs", 59 const char *name, in anon_inode_make_secure_inode() argument 63 const struct qstr qname = QSTR_INIT(name, strlen(name)); in anon_inode_make_secure_inode() 78 static struct file *__anon_inode_getfile(const char *name, in __anon_inode_getfile() argument 91 inode = anon_inode_make_secure_inode(name, context_inode); in __anon_inode_getfile() 109 file = alloc_file_pseudo(inode, anon_inode_mnt, name, in __anon_inode_getfile() 143 struct file *anon_inode_getfile(const char *name, in anon_inode_getfile() argument 147 return __anon_inode_getfile(name, fops, priv, flags, NULL, false); in anon_inode_getfile() 171 struct file *anon_inode_getfile_secure(const char *name, in anon_inode_getfile_secure() argument [all …]
|
/fs/btrfs/ |
D | dir-item.c | 24 const char *name, in insert_with_overflow() argument 35 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in insert_with_overflow() 56 const char *name, u16 name_len, in btrfs_insert_xattr_item() argument 72 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_xattr_item() 76 name, name_len); in btrfs_insert_xattr_item() 91 write_extent_buffer(leaf, name, name_ptr, name_len); in btrfs_insert_xattr_item() 107 const struct fscrypt_str *name, struct btrfs_inode *dir, in btrfs_insert_dir_item() argument 123 key.offset = btrfs_name_hash(name->name, name->len); in btrfs_insert_dir_item() 131 data_size = sizeof(*dir_item) + name->len; in btrfs_insert_dir_item() 133 name->name, name->len); in btrfs_insert_dir_item() [all …]
|
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() 225 int btrfs_setxattr_trans(struct inode *inode, const char *name, in btrfs_setxattr_trans() argument [all …]
|
D | inode-item.c | 14 const struct fscrypt_str *name) in btrfs_find_name_in_backref() argument 30 if (len != name->len) in btrfs_find_name_in_backref() 32 if (memcmp_extent_buffer(leaf, name->name, name_ptr, in btrfs_find_name_in_backref() 33 name->len) == 0) in btrfs_find_name_in_backref() 41 const struct fscrypt_str *name) in btrfs_find_name_in_ext_backref() argument 61 name_ptr = (unsigned long)(&extref->name); in btrfs_find_name_in_ext_backref() 64 if (ref_name_len == name->len && in btrfs_find_name_in_ext_backref() 66 (memcmp_extent_buffer(leaf, name->name, name_ptr, in btrfs_find_name_in_ext_backref() 67 name->len) == 0)) in btrfs_find_name_in_ext_backref() 80 const struct fscrypt_str *name, in btrfs_lookup_inode_extref() argument [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/fscache/ |
D | cache.c | 24 static struct fscache_cache *fscache_alloc_cache(const char *name) in fscache_alloc_cache() argument 30 if (name) { in fscache_alloc_cache() 31 cache->name = kstrdup(name, GFP_KERNEL); in fscache_alloc_cache() 32 if (!cache->name) { in fscache_alloc_cache() 59 struct fscache_cache *fscache_lookup_cache(const char *name, bool is_cache) in fscache_lookup_cache() argument 67 if (cache->name && name && strcmp(cache->name, name) == 0 && in fscache_lookup_cache() 70 if (!cache->name && !name && in fscache_lookup_cache() 75 if (!name) { in fscache_lookup_cache() 77 if (cache->name && in fscache_lookup_cache() 86 candidate = fscache_alloc_cache(name); in fscache_lookup_cache() [all …]
|
/fs/hostfs/ |
D | hostfs_kern.c | 87 static char *__dentry_name(struct dentry *dentry, char *name) in __dentry_name() argument 89 char *p = dentry_path_raw(dentry, name, PATH_MAX); in __dentry_name() 96 __putname(name); in __dentry_name() 104 BUG_ON(p + strlen(p) + 1 != name + PATH_MAX); in __dentry_name() 106 strscpy(name, root, PATH_MAX); in __dentry_name() 107 if (len > p - name) { in __dentry_name() 108 __putname(name); in __dentry_name() 112 if (p > name + len) in __dentry_name() 113 strcpy(name + len, p); in __dentry_name() 115 return name; in __dentry_name() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_dir2.c | 23 .name = (const unsigned char *)"..", 61 const struct xfs_name *name) in xfs_ascii_ci_hashname() argument 66 for (i = 0, hash = 0; i < name->len; i++) in xfs_ascii_ci_hashname() 67 hash = tolower(name->name[i]) ^ rol32(hash, 7); in xfs_ascii_ci_hashname() 75 const unsigned char *name, in xfs_ascii_ci_compname() argument 86 if (args->name[i] == name[i]) in xfs_ascii_ci_compname() 88 if (tolower(args->name[i]) != tolower(name[i])) in xfs_ascii_ci_compname() 258 const struct xfs_name *name, in xfs_dir_createname() argument 280 args->name = name->name; in xfs_dir_createname() 281 args->namelen = name->len; in xfs_dir_createname() [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/afs/ |
D | dir_edit.c | 129 static int afs_dir_scan_block(union afs_xdr_dir_block *block, struct qstr *name, in afs_dir_scan_block() argument 157 len = strlen(de->u.name); in afs_dir_scan_block() 158 if (len == name->len && in afs_dir_scan_block() 159 memcmp(de->u.name, name->name, name->len) == 0) in afs_dir_scan_block() 206 struct qstr *name, struct afs_fid *new_fid, in afs_edit_dir_add() argument 217 _enter(",,{%d,%s},", name->len, name->name); in afs_edit_dir_add() 233 need_slots = afs_dir_calc_slots(name->len); in afs_edit_dir_add() 300 trace_afs_edit_dir(vnode, why, afs_edit_dir_create_nospc, 0, 0, 0, 0, name->name); in afs_edit_dir_add() 317 new_fid->vnode, new_fid->unique, name->name); in afs_edit_dir_add() 324 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/cachefiles/ |
D | key.c | 43 char *name, sep; in cachefiles_cook_key() local 58 name = kmalloc(len + 1, GFP_KERNEL); in cachefiles_cook_key() 59 if (!name) in cachefiles_cook_key() 62 name[0] = 'D'; /* Data object type, string encoding */ in cachefiles_cook_key() 63 memcpy(name + 1, key, keylen); in cachefiles_cook_key() 87 name = kmalloc(nlen, GFP_KERNEL); in cachefiles_cook_key() 88 if (!name) in cachefiles_cook_key() 98 name[len++] = sep; in cachefiles_cook_key() 100 len += snprintf(name + len, nlen - len, "%x", x); in cachefiles_cook_key() 107 name = kmalloc(b64len + 1, GFP_KERNEL); in cachefiles_cook_key() [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 …]
|
/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/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 inode *dir, struct erofs_qstr *name, int *_ndirents) in erofs_find_target_block() argument [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/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/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 …]
|