Lines Matching refs:new_xattr
943 struct simple_xattr *new_xattr; in simple_xattr_alloc() local
947 len = sizeof(*new_xattr) + size; in simple_xattr_alloc()
948 if (len < sizeof(*new_xattr)) in simple_xattr_alloc()
951 new_xattr = kvmalloc(len, GFP_KERNEL); in simple_xattr_alloc()
952 if (!new_xattr) in simple_xattr_alloc()
955 new_xattr->size = size; in simple_xattr_alloc()
956 memcpy(new_xattr->value, value, size); in simple_xattr_alloc()
957 return new_xattr; in simple_xattr_alloc()
1007 struct simple_xattr *new_xattr = NULL; in simple_xattr_set() local
1015 new_xattr = simple_xattr_alloc(value, size); in simple_xattr_set()
1016 if (!new_xattr) in simple_xattr_set()
1019 new_xattr->name = kstrdup(name, GFP_KERNEL); in simple_xattr_set()
1020 if (!new_xattr->name) { in simple_xattr_set()
1021 kvfree(new_xattr); in simple_xattr_set()
1030 xattr = new_xattr; in simple_xattr_set()
1032 } else if (new_xattr) { in simple_xattr_set()
1033 list_replace(&xattr->list, &new_xattr->list); in simple_xattr_set()
1045 xattr = new_xattr; in simple_xattr_set()
1048 list_add(&new_xattr->list, &xattrs->head); in simple_xattr_set()
1127 struct simple_xattr *new_xattr) in simple_xattr_list_add() argument
1130 list_add(&new_xattr->list, &xattrs->head); in simple_xattr_list_add()