/fs/autofs4/ |
D | waitq.c | 45 kfree(wq->name.name); in autofs4_catatonic_mode() 46 wq->name.name = NULL; in autofs4_catatonic_mode() 106 (unsigned long) wq->wait_queue_token, wq->name.len, wq->name.name, type); in autofs4_notify_daemon() 128 mp->len = wq->name.len; in autofs4_notify_daemon() 129 memcpy(mp->name, wq->name.name, wq->name.len); in autofs4_notify_daemon() 130 mp->name[wq->name.len] = '\0'; in autofs4_notify_daemon() 140 ep->len = wq->name.len; in autofs4_notify_daemon() 141 memcpy(ep->name, wq->name.name, wq->name.len); in autofs4_notify_daemon() 142 ep->name[wq->name.len] = '\0'; in autofs4_notify_daemon() 160 packet->len = wq->name.len; in autofs4_notify_daemon() [all …]
|
/fs/ |
D | xattr.c | 32 xattr_permission(struct inode *inode, const char *name, int mask) in xattr_permission() argument 47 if (!strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) || in xattr_permission() 48 !strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in xattr_permission() 54 if (!strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) { in xattr_permission() 65 if (!strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) { in xattr_permission() 92 int __vfs_setxattr_noperm(struct dentry *dentry, const char *name, in __vfs_setxattr_noperm() argument 97 int issec = !strncmp(name, XATTR_SECURITY_PREFIX, in __vfs_setxattr_noperm() 103 error = inode->i_op->setxattr(dentry, name, value, size, flags); in __vfs_setxattr_noperm() 106 security_inode_post_setxattr(dentry, name, value, in __vfs_setxattr_noperm() 110 const char *suffix = name + XATTR_SECURITY_PREFIX_LEN; in __vfs_setxattr_noperm() [all …]
|
D | filesystems.c | 46 static struct file_system_type **find_filesystem(const char *name, unsigned len) in find_filesystem() argument 50 if (strlen((*p)->name) == len && in find_filesystem() 51 strncmp((*p)->name, name, len) == 0) in find_filesystem() 74 BUG_ON(strchr(fs->name, '.')); in register_filesystem() 78 p = find_filesystem(fs->name, strlen(fs->name)); in register_filesystem() 127 struct filename *name; in fs_index() local 130 name = getname(__name); in fs_index() 131 err = PTR_ERR(name); in fs_index() 132 if (IS_ERR(name)) in fs_index() 138 if (strcmp(tmp->name, name->name) == 0) { in fs_index() [all …]
|
/fs/ext4/ |
D | crypto_fname.c | 111 memcpy(workbuf, iname->name, iname->len); in ext4_fname_encrypt() 120 sg_init_one(&dst_sg, oname->name, ciphertext_len); in ext4_fname_encrypt() 162 tmp_in[0].name = iname->name; in ext4_fname_decrypt() 164 tmp_out[0].name = oname->name; in ext4_fname_decrypt() 181 sg_init_one(&src_sg, iname->name, iname->len); in ext4_fname_decrypt() 182 sg_init_one(&dst_sg, oname->name, oname->len); in ext4_fname_decrypt() 198 oname->len = strnlen(oname->name, iname->len); in ext4_fname_decrypt() 293 crypto_str->name = kmalloc(olen+1, GFP_NOFS); in ext4_fname_crypto_alloc_buffer() 294 if (!(crypto_str->name)) in ext4_fname_crypto_alloc_buffer() 308 kfree(crypto_str->name); in ext4_fname_crypto_free_buffer() [all …]
|
/fs/btrfs/ |
D | xattr.c | 32 ssize_t __btrfs_getxattr(struct inode *inode, const char *name, in __btrfs_getxattr() argument 47 di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(inode), name, in __btrfs_getxattr() 48 strlen(name), 0); in __btrfs_getxattr() 89 struct inode *inode, const char *name, in do_setxattr() argument 95 size_t name_len = strlen(name); in do_setxattr() 106 di = btrfs_lookup_xattr(trans, root, path, btrfs_ino(inode), name, in do_setxattr() 127 name, name_len, 0); in do_setxattr() 139 name, name_len, value, size); in do_setxattr() 161 name, name_len, -1); in do_setxattr() 192 struct inode *inode, const char *name, in __btrfs_setxattr() argument [all …]
|
/fs/hostfs/ |
D | hostfs_kern.c | 92 static char *__dentry_name(struct dentry *dentry, char *name) in __dentry_name() argument 94 char *p = dentry_path_raw(dentry, name, PATH_MAX); in __dentry_name() 101 __putname(name); in __dentry_name() 104 strlcpy(name, root, PATH_MAX); in __dentry_name() 105 if (len > p - name) { in __dentry_name() 106 __putname(name); in __dentry_name() 109 if (p > name + len) { in __dentry_name() 110 char *s = name + len; in __dentry_name() 114 return name; in __dentry_name() 119 char *name = __getname(); in dentry_name() local [all …]
|
/fs/hfsplus/ |
D | xattr.c | 20 static int strcmp_xattr_finder_info(const char *name) in strcmp_xattr_finder_info() argument 22 if (name) { in strcmp_xattr_finder_info() 23 return strncmp(name, HFSPLUS_XATTR_FINDER_INFO_NAME, in strcmp_xattr_finder_info() 29 static int strcmp_xattr_acl(const char *name) in strcmp_xattr_acl() argument 31 if (name) { in strcmp_xattr_acl() 32 return strncmp(name, HFSPLUS_XATTR_ACL_NAME, in strcmp_xattr_acl() 38 static inline int is_known_namespace(const char *name) in is_known_namespace() argument 40 if (strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) && in is_known_namespace() 41 strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) && in is_known_namespace() 42 strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) && in is_known_namespace() [all …]
|
D | attributes.c | 50 u32 cnid, const char *name) in hfsplus_attr_build_key() argument 56 if (name) { in hfsplus_attr_build_key() 57 len = strlen(name); in hfsplus_attr_build_key() 64 HFSPLUS_ATTR_MAX_STRLEN, name, len); in hfsplus_attr_build_key() 87 struct hfsplus_attr_unistr *name) in hfsplus_attr_build_key_uni() argument 92 ustrlen = be16_to_cpu(name->length); in hfsplus_attr_build_key_uni() 96 memcpy(key->attr.key_name.unicode, name->unicode, ustrlen); in hfsplus_attr_build_key_uni() 165 const char *name, struct hfs_find_data *fd) in hfsplus_find_attr() argument 169 hfs_dbg(ATTR_MOD, "find_attr: %s,%d\n", name ? name : NULL, cnid); in hfsplus_find_attr() 176 if (name) { in hfsplus_find_attr() [all …]
|
/fs/debugfs/ |
D | file.c | 93 struct dentry *debugfs_create_u8(const char *name, umode_t mode, in debugfs_create_u8() argument 98 return debugfs_create_file(name, mode, parent, value, &fops_u8_ro); in debugfs_create_u8() 101 return debugfs_create_file(name, mode, parent, value, &fops_u8_wo); in debugfs_create_u8() 103 return debugfs_create_file(name, mode, parent, value, &fops_u8); in debugfs_create_u8() 145 struct dentry *debugfs_create_u16(const char *name, umode_t mode, in debugfs_create_u16() argument 150 return debugfs_create_file(name, mode, parent, value, &fops_u16_ro); in debugfs_create_u16() 153 return debugfs_create_file(name, mode, parent, value, &fops_u16_wo); in debugfs_create_u16() 155 return debugfs_create_file(name, mode, parent, value, &fops_u16); in debugfs_create_u16() 197 struct dentry *debugfs_create_u32(const char *name, umode_t mode, in debugfs_create_u32() argument 202 return debugfs_create_file(name, mode, parent, value, &fops_u32_ro); in debugfs_create_u32() [all …]
|
/fs/ocfs2/ |
D | ocfs2_trace.h | 21 #define DEFINE_OCFS2_INT_EVENT(name) \ argument 22 DEFINE_EVENT(ocfs2__int, name, \ 38 #define DEFINE_OCFS2_UINT_EVENT(name) \ argument 39 DEFINE_EVENT(ocfs2__uint, name, \ 55 #define DEFINE_OCFS2_ULL_EVENT(name) \ argument 56 DEFINE_EVENT(ocfs2__ull, name, \ 72 #define DEFINE_OCFS2_POINTER_EVENT(name) \ argument 73 DEFINE_EVENT(ocfs2__pointer, name, \ 78 TP_PROTO(const char *name), 79 TP_ARGS(name), [all …]
|
/fs/affs/ |
D | namei.c | 21 unsigned int len, const char *str, const struct qstr *name); 28 unsigned int len, const char *str, const struct qstr *name); 71 const u8 *name = qstr->name; in __affs_hash_dentry() local 75 i = affs_check_name(qstr->name, qstr->len); in __affs_hash_dentry() 81 for (; i > 0; name++, i--) in __affs_hash_dentry() 82 hash = partial_name_hash(toupper(*name), hash); in __affs_hash_dentry() 102 const char *str, const struct qstr *name, toupper_t toupper) in __affs_compare_dentry() argument 105 const u8 *bname = name->name; in __affs_compare_dentry() 112 if (affs_check_name(name->name, name->len)) in __affs_compare_dentry() 120 if (name->len < 30) in __affs_compare_dentry() [all …]
|
/fs/proc/ |
D | generic.c | 32 static int proc_match(unsigned int len, const char *name, struct proc_dir_entry *de) in proc_match() argument 36 return !memcmp(name, de->name, len); in proc_match() 79 static int __xlate_proc_name(const char *name, struct proc_dir_entry **ret, in __xlate_proc_name() argument 82 const char *cp = name, *next; in __xlate_proc_name() 101 WARN(1, "name '%s'\n", name); in __xlate_proc_name() 111 static int xlate_proc_name(const char *name, struct proc_dir_entry **ret, in xlate_proc_name() argument 117 rv = __xlate_proc_name(name, ret, residual); in xlate_proc_name() 206 if (!memcmp(dentry->d_name.name, de->name, de->namelen)) { in proc_lookup_de() 283 if (filldir(dirent, de->name, de->namelen, filp->f_pos, in proc_readdir_de() 354 if (strcmp(tmp->name, dp->name) == 0) { in proc_register() [all …]
|
/fs/sdcardfs/ |
D | packagelist.c | 48 static unsigned int full_name_case_hash(const unsigned char *name, unsigned int len) in full_name_case_hash() argument 53 hash = partial_name_hash(tolower(*name++), hash); in full_name_case_hash() 57 static inline void qstr_init(struct qstr *q, const char *name) in qstr_init() argument 59 q->name = name; in qstr_init() 60 q->len = strlen(q->name); in qstr_init() 61 q->hash = full_name_case_hash(q->name, q->len); in qstr_init() 66 dest->name = kstrdup(src->name, GFP_KERNEL); in qstr_copy() 68 return !!dest->name; in qstr_copy() 153 int check_caller_access_to_name(struct inode *parent_node, const struct qstr *name) in check_caller_access_to_name() argument 161 if (qstr_case_eq(name, &q_autorun) in check_caller_access_to_name() [all …]
|
/fs/hpfs/ |
D | name.c | 41 int hpfs_chk_name(const unsigned char *name, unsigned *len) in hpfs_chk_name() argument 45 hpfs_adjust_length(name, len); in hpfs_chk_name() 47 for (i = 0; i < *len; i++) if (not_allowed_char(name[i])) return -EINVAL; in hpfs_chk_name() 48 if (*len == 1) if (name[0] == '.') return -EINVAL; in hpfs_chk_name() 49 if (*len == 2) if (name[0] == '.' && name[1] == '.') return -EINVAL; in hpfs_chk_name() 91 int hpfs_is_name_long(const unsigned char *name, unsigned len) in hpfs_is_name_long() argument 94 for (i = 0; i < len && name[i] != '.'; i++) in hpfs_is_name_long() 95 if (no_dos_char(name[i])) return 1; in hpfs_is_name_long() 99 if (name[j] == '.' || no_dos_char(name[i])) return 1; in hpfs_is_name_long() 105 void hpfs_adjust_length(const unsigned char *name, unsigned *len) in hpfs_adjust_length() argument [all …]
|
D | dentry.c | 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() 41 unsigned int len, const char *str, const struct qstr *name) in hpfs_compare_dentry() argument 44 unsigned bl = name->len; in hpfs_compare_dentry() 54 if (hpfs_chk_name(name->name, &bl)) in hpfs_compare_dentry() 56 if (hpfs_compare_names(parent->d_sb, str, al, name->name, bl, 0)) in hpfs_compare_dentry()
|
/fs/nfsd/ |
D | nfs4idmap.c | 69 char name[IDMAP_NAMESZ]; member 87 strlcpy(new->name, itm->name, sizeof(new->name)); in ent_init() 88 strlcpy(new->authname, itm->authname, sizeof(new->name)); in ent_init() 166 seq_printf(m, " %s", ent->name); in idtoname_show() 187 .name = "nfs4.idtoname", 255 memcpy(ent.name, buf1, sizeof(ent.name)); in idtoname_parse() 301 return hash_str(ent->name, ENT_HASHBITS); in nametoid_hash() 312 qword_add(bpp, blen, ent->name); in nametoid_request() 323 return (a->type == b->type && strcmp(a->name, b->name) == 0 && in nametoid_match() 339 ent->name); in nametoid_show() [all …]
|
/fs/efivarfs/ |
D | super.c | 51 const struct qstr *name) in efivarfs_d_compare() argument 55 if (name->len != len) in efivarfs_d_compare() 59 if (memcmp(str, name->name, guid)) in efivarfs_d_compare() 63 return strncasecmp(name->name + guid, str + guid, EFI_VARIABLE_GUID_LEN); in efivarfs_d_compare() 70 const unsigned char *s = qstr->name; in efivarfs_d_hash() 102 static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name) in efivarfs_alloc_dentry() argument 108 q.name = name; in efivarfs_alloc_dentry() 109 q.len = strlen(name); in efivarfs_alloc_dentry() 130 char *name; in efivarfs_callback() local 144 name = kmalloc(len + 1 + EFI_VARIABLE_GUID_LEN + 1, GFP_KERNEL); in efivarfs_callback() [all …]
|
/fs/adfs/ |
D | dir.c | 57 if (filldir(dirent, obj.name, obj.name_len, in adfs_readdir() 110 adfs_match(struct qstr *name, struct object_info *obj) in adfs_match() argument 114 if (name->len != obj->name_len) in adfs_match() 117 for (i = 0; i < name->len; i++) { in adfs_match() 120 c1 = name->name[i]; in adfs_match() 121 c2 = obj->name[i]; in adfs_match() 135 adfs_dir_lookup_byname(struct inode *inode, struct qstr *name, struct object_info *obj) in adfs_dir_lookup_byname() argument 158 if (name->len == 2 && name->name[0] == '.' && name->name[1] == '.') { in adfs_dir_lookup_byname() 177 if (adfs_match(name, obj)) { in adfs_dir_lookup_byname() 204 const unsigned char *name; in adfs_hash() local [all …]
|
/fs/coda/ |
D | dir.c | 100 const char *name = entry->d_name.name; in coda_lookup() local 107 coda_i2s(dir), (int)length, name); in coda_lookup() 112 if (coda_isroot(dir) && coda_iscontrol(name, length)) { in coda_lookup() 117 int error = venus_lookup(sb, coda_i2f(dir), name, length, in coda_lookup() 194 const char *name=de->d_name.name; in coda_create() local 200 if (coda_isroot(dir) && coda_iscontrol(name, length)) in coda_create() 203 error = venus_create(dir->i_sb, coda_i2f(dir), name, length, in coda_create() 227 const char *name = de->d_name.name; in coda_mkdir() local 232 if (coda_isroot(dir) && coda_iscontrol(name, len)) in coda_mkdir() 237 name, len, &newfid, &attrs); in coda_mkdir() [all …]
|
/fs/ocfs2/dlm/ |
D | dlmmaster.c | 72 const char *name, in dlm_mle_equal() argument 79 memcmp(name, mle->mname, namelen) != 0) in dlm_mle_equal() 94 const char *name, 100 char *name, unsigned int namelen); 118 const char *name, unsigned int namelen, 269 const char *name, in dlm_init_mle() argument 295 memcpy(mle->mname, res->lockname.name, res->lockname.len); in dlm_init_mle() 299 BUG_ON(!name); in dlm_init_mle() 301 memcpy(mle->mname, name, namelen); in dlm_init_mle() 303 mle->mnamehash = dlm_lockid_hash(name, namelen); in dlm_init_mle() [all …]
|
/fs/gfs2/ |
D | dir.h | 46 static inline void gfs2_str2qstr(struct qstr *name, const char *fname) in gfs2_str2qstr() argument 48 name->name = fname; in gfs2_str2qstr() 49 name->len = strlen(fname); in gfs2_str2qstr() 50 name->hash = gfs2_disk_hash(name->name, name->len); in gfs2_str2qstr() 54 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument 58 dent->de_hash = cpu_to_be32(name->hash); in gfs2_qstr2dirent() 60 dent->de_name_len = cpu_to_be16(name->len); in gfs2_qstr2dirent() 63 memcpy(dent + 1, name->name, name->len); in gfs2_qstr2dirent()
|
/fs/xfs/ |
D | xfs_dir2.c | 49 struct xfs_name *name) in xfs_ascii_ci_hashname() argument 54 for (i = 0, hash = 0; i < name->len; i++) in xfs_ascii_ci_hashname() 55 hash = tolower(name->name[i]) ^ rol32(hash, 7); in xfs_ascii_ci_hashname() 63 const unsigned char *name, in xfs_ascii_ci_compname() argument 74 if (args->name[i] == name[i]) in xfs_ascii_ci_compname() 76 if (tolower(args->name[i]) != tolower(name[i])) in xfs_ascii_ci_compname() 194 struct xfs_name *name, in xfs_dir_createname() argument 210 args.name = name->name; in xfs_dir_createname() 211 args.namelen = name->len; in xfs_dir_createname() 212 args.hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_createname() [all …]
|
/fs/reiserfs/ |
D | xattr_security.c | 12 security_get(struct dentry *dentry, const char *name, void *buffer, size_t size, in security_get() argument 15 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) in security_get() 21 return reiserfs_xattr_get(dentry->d_inode, name, buffer, size); in security_get() 25 security_set(struct dentry *dentry, const char *name, const void *buffer, in security_set() argument 28 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) in security_set() 34 return reiserfs_xattr_set(dentry->d_inode, name, buffer, size, flags); in security_set() 38 const char *name, size_t namelen, int handler_flags) in security_list() argument 46 memcpy(list, name, namelen); in security_list() 63 sec->name = NULL; in reiserfs_security_init() 69 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init() [all …]
|
/fs/jfs/ |
D | xattr.c | 89 static int is_known_namespace(const char *name) in is_known_namespace() argument 91 if (strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) && in is_known_namespace() 92 strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) && in is_known_namespace() 93 strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) && in is_known_namespace() 94 strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) in is_known_namespace() 107 return !is_known_namespace(ea->name); in is_os2_xattr() 127 memcpy(buffer, ea->name, ea->namelen); in copy_name() 674 static int can_set_system_xattr(struct inode *inode, const char *name, in can_set_system_xattr() argument 687 if (strcmp(name, POSIX_ACL_XATTR_ACCESS) == 0) { in can_set_system_xattr() 713 } else if (strcmp(name, POSIX_ACL_XATTR_DEFAULT) == 0) { in can_set_system_xattr() [all …]
|
/fs/ceph/ |
D | xattr.c | 14 static bool ceph_is_valid_xattr(const char *name) in ceph_is_valid_xattr() argument 16 return !strncmp(name, XATTR_CEPH_PREFIX, XATTR_CEPH_PREFIX_LEN) || in ceph_is_valid_xattr() 17 !strncmp(name, XATTR_SECURITY_PREFIX, in ceph_is_valid_xattr() 19 !strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN) || in ceph_is_valid_xattr() 20 !strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN); in ceph_is_valid_xattr() 28 char *name; member 178 .name = CEPH_XATTR_NAME(_type, _name), \ 187 .name = CEPH_XATTR_NAME2(_type, _name, _field), \ 197 .name = "ceph.dir.layout", 216 { .name = NULL, 0 } /* Required table terminator */ [all …]
|