xattrs 659 fs/ceph/xattr.c struct ceph_inode_xattr **xattrs = NULL; xattrs 680 fs/ceph/xattr.c xattrs = kcalloc(numattr, sizeof(struct ceph_inode_xattr *), xattrs 683 fs/ceph/xattr.c if (!xattrs) xattrs 687 fs/ceph/xattr.c xattrs[i] = kmalloc(sizeof(struct ceph_inode_xattr), xattrs 689 fs/ceph/xattr.c if (!xattrs[i]) xattrs 697 fs/ceph/xattr.c kfree(xattrs[i]); xattrs 698 fs/ceph/xattr.c kfree(xattrs); xattrs 699 fs/ceph/xattr.c xattrs = NULL; xattrs 713 fs/ceph/xattr.c 0, 0, &xattrs[numattr]); xattrs 718 fs/ceph/xattr.c kfree(xattrs); xattrs 727 fs/ceph/xattr.c if (xattrs) { xattrs 729 fs/ceph/xattr.c kfree(xattrs[i]); xattrs 730 fs/ceph/xattr.c kfree(xattrs); xattrs 535 fs/kernfs/dir.c simple_xattrs_free(&kn->iattr->xattrs); xattrs 55 fs/kernfs/inode.c simple_xattrs_init(&kn->iattr->xattrs); xattrs 148 fs/kernfs/inode.c return simple_xattr_list(d_inode(dentry), &attrs->xattrs, buf, size); xattrs 296 fs/kernfs/inode.c return simple_xattr_get(&attrs->xattrs, name, value, size); xattrs 306 fs/kernfs/inode.c return simple_xattr_set(&attrs->xattrs, name, value, size, flags); xattrs 28 fs/kernfs/kernfs-internal.h struct simple_xattrs xattrs; xattrs 832 fs/xattr.c int simple_xattr_get(struct simple_xattrs *xattrs, const char *name, xattrs 838 fs/xattr.c spin_lock(&xattrs->lock); xattrs 839 fs/xattr.c list_for_each_entry(xattr, &xattrs->head, list) { xattrs 852 fs/xattr.c spin_unlock(&xattrs->lock); xattrs 870 fs/xattr.c int simple_xattr_set(struct simple_xattrs *xattrs, const char *name, xattrs 890 fs/xattr.c spin_lock(&xattrs->lock); xattrs 891 fs/xattr.c list_for_each_entry(xattr, &xattrs->head, list) { xattrs 908 fs/xattr.c list_add(&new_xattr->list, &xattrs->head); xattrs 912 fs/xattr.c spin_unlock(&xattrs->lock); xattrs 943 fs/xattr.c ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs, xattrs 968 fs/xattr.c spin_lock(&xattrs->lock); xattrs 969 fs/xattr.c list_for_each_entry(xattr, &xattrs->head, list) { xattrs 978 fs/xattr.c spin_unlock(&xattrs->lock); xattrs 986 fs/xattr.c void simple_xattr_list_add(struct simple_xattrs *xattrs, xattrs 989 fs/xattr.c spin_lock(&xattrs->lock); xattrs 990 fs/xattr.c list_add(&new_xattr->list, &xattrs->head); xattrs 991 fs/xattr.c spin_unlock(&xattrs->lock); xattrs 717 include/linux/security.h const initxattrs xattrs, xattrs 23 include/linux/shmem_fs.h struct simple_xattrs xattrs; /* list of xattrs */ xattrs 82 include/linux/xattr.h static inline void simple_xattrs_init(struct simple_xattrs *xattrs) xattrs 84 include/linux/xattr.h INIT_LIST_HEAD(&xattrs->head); xattrs 85 include/linux/xattr.h spin_lock_init(&xattrs->lock); xattrs 91 include/linux/xattr.h static inline void simple_xattrs_free(struct simple_xattrs *xattrs) xattrs 95 include/linux/xattr.h list_for_each_entry_safe(xattr, node, &xattrs->head, list) { xattrs 102 include/linux/xattr.h int simple_xattr_get(struct simple_xattrs *xattrs, const char *name, xattrs 104 include/linux/xattr.h int simple_xattr_set(struct simple_xattrs *xattrs, const char *name, xattrs 106 include/linux/xattr.h ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs, char *buffer, xattrs 108 include/linux/xattr.h void simple_xattr_list_add(struct simple_xattrs *xattrs, xattrs 1113 mm/shmem.c simple_xattrs_free(&info->xattrs); xattrs 2266 mm/shmem.c simple_xattrs_init(&info->xattrs); xattrs 3224 mm/shmem.c simple_xattr_list_add(&info->xattrs, new_xattr); xattrs 3237 mm/shmem.c return simple_xattr_get(&info->xattrs, name, buffer, size); xattrs 3248 mm/shmem.c return simple_xattr_set(&info->xattrs, name, value, size, flags); xattrs 3276 mm/shmem.c return simple_xattr_list(d_inode(dentry), &info->xattrs, buffer, size); xattrs 328 security/apparmor/domain.c size = vfs_getxattr_alloc(d, profile->xattrs[i], &value, xattrs 150 security/apparmor/include/policy.h char **xattrs; xattrs 227 security/apparmor/policy.c kzfree(profile->xattrs[i]); xattrs 228 security/apparmor/policy.c kzfree(profile->xattrs); xattrs 552 security/apparmor/policy_unpack.c profile->xattrs = kcalloc(size, sizeof(char *), GFP_KERNEL); xattrs 553 security/apparmor/policy_unpack.c if (!profile->xattrs) xattrs 556 security/apparmor/policy_unpack.c if (!unpack_strdup(e, &profile->xattrs[i], NULL)) xattrs 70 security/integrity/evm/evm_main.c int i, xattrs; xattrs 72 security/integrity/evm/evm_main.c xattrs = ARRAY_SIZE(evm_config_default_xattrnames); xattrs 75 security/integrity/evm/evm_main.c for (i = 0; i < xattrs; i++) {