Lines Matching refs:size
21 int size; in btrfs_get_acl() local
37 size = btrfs_getxattr(inode, name, NULL, 0); in btrfs_get_acl()
38 if (size > 0) { in btrfs_get_acl()
39 value = kzalloc(size, GFP_KERNEL); in btrfs_get_acl()
42 size = btrfs_getxattr(inode, name, value, size); in btrfs_get_acl()
44 if (size > 0) in btrfs_get_acl()
45 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl()
46 else if (size == -ENODATA || size == 0) in btrfs_get_acl()
49 acl = ERR_PTR(size); in btrfs_get_acl()
58 int ret, size = 0; in __btrfs_set_acl() local
78 size = posix_acl_xattr_size(acl->a_count); in __btrfs_set_acl()
84 value = kmalloc(size, GFP_KERNEL); in __btrfs_set_acl()
91 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __btrfs_set_acl()
97 ret = btrfs_setxattr(trans, inode, name, value, size, 0); in __btrfs_set_acl()
99 ret = btrfs_setxattr_trans(inode, name, value, size, 0); in __btrfs_set_acl()