Lines Matching refs:size
21 int size; in btrfs_get_acl() local
40 size = btrfs_getxattr(inode, name, NULL, 0); in btrfs_get_acl()
41 if (size > 0) { in btrfs_get_acl()
42 value = kzalloc(size, GFP_KERNEL); in btrfs_get_acl()
45 size = btrfs_getxattr(inode, name, value, size); in btrfs_get_acl()
47 if (size > 0) in btrfs_get_acl()
48 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl()
49 else if (size == -ENODATA || size == 0) in btrfs_get_acl()
52 acl = ERR_PTR(size); in btrfs_get_acl()
61 int ret, size = 0; in __btrfs_set_acl() local
81 size = posix_acl_xattr_size(acl->a_count); in __btrfs_set_acl()
87 value = kmalloc(size, GFP_KERNEL); in __btrfs_set_acl()
94 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __btrfs_set_acl()
100 ret = btrfs_setxattr(trans, inode, name, value, size, 0); in __btrfs_set_acl()
102 ret = btrfs_setxattr_trans(inode, name, value, size, 0); in __btrfs_set_acl()