Lines Matching refs:new_xattr
1092 struct simple_xattr *new_xattr; in simple_xattr_alloc() local
1096 len = sizeof(*new_xattr) + size; in simple_xattr_alloc()
1097 if (len < sizeof(*new_xattr)) in simple_xattr_alloc()
1100 new_xattr = kvmalloc(len, GFP_KERNEL_ACCOUNT); in simple_xattr_alloc()
1101 if (!new_xattr) in simple_xattr_alloc()
1104 new_xattr->size = size; in simple_xattr_alloc()
1105 memcpy(new_xattr->value, value, size); in simple_xattr_alloc()
1106 return new_xattr; in simple_xattr_alloc()
1214 struct simple_xattr *old_xattr = NULL, *new_xattr = NULL; in simple_xattr_set() local
1220 new_xattr = simple_xattr_alloc(value, size); in simple_xattr_set()
1221 if (!new_xattr) in simple_xattr_set()
1224 new_xattr->name = kstrdup(name, GFP_KERNEL_ACCOUNT); in simple_xattr_set()
1225 if (!new_xattr->name) { in simple_xattr_set()
1226 simple_xattr_free(new_xattr); in simple_xattr_set()
1253 if (new_xattr) in simple_xattr_set()
1255 &new_xattr->rb_node, &xattrs->rb_root); in simple_xattr_set()
1269 if (new_xattr) { in simple_xattr_set()
1270 rb_link_node(&new_xattr->rb_node, parent, rbp); in simple_xattr_set()
1271 rb_insert_color(&new_xattr->rb_node, &xattrs->rb_root); in simple_xattr_set()
1284 simple_xattr_free(new_xattr); in simple_xattr_set()
1368 struct simple_xattr *new_xattr) in simple_xattr_add() argument
1371 rb_add(&new_xattr->rb_node, &xattrs->rb_root, rbtree_simple_xattr_less); in simple_xattr_add()