Lines Matching refs:size
30 ssize_t size; in __v9fs_get_acl() local
34 size = v9fs_fid_xattr_get(fid, name, NULL, 0); in __v9fs_get_acl()
35 if (size > 0) { in __v9fs_get_acl()
36 value = kzalloc(size, GFP_NOFS); in __v9fs_get_acl()
39 size = v9fs_fid_xattr_get(fid, name, value, size); in __v9fs_get_acl()
40 if (size > 0) { in __v9fs_get_acl()
41 acl = posix_acl_from_xattr(&init_user_ns, value, size); in __v9fs_get_acl()
45 } else if (size == -ENODATA || size == 0 || in __v9fs_get_acl()
46 size == -ENOSYS || size == -EOPNOTSUPP) { in __v9fs_get_acl()
121 size_t size; in v9fs_set_acl() local
127 size = posix_acl_xattr_size(acl->a_count); in v9fs_set_acl()
128 buffer = kmalloc(size, GFP_KERNEL); in v9fs_set_acl()
131 retval = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_set_acl()
144 retval = v9fs_fid_xattr_set(fid, name, buffer, size, 0); in v9fs_set_acl()
217 const char *name, void *buffer, size_t size, in v9fs_xattr_get_acl() argument
229 return v9fs_xattr_get(dentry, handler->name, buffer, size); in v9fs_xattr_get_acl()
236 error = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_xattr_get_acl()
245 size_t size, int flags) in v9fs_xattr_set_acl() argument
257 return v9fs_xattr_set(dentry, handler->name, value, size, in v9fs_xattr_set_acl()
266 acl = posix_acl_from_xattr(&init_user_ns, value, size); in v9fs_xattr_set_acl()
294 size = 0; in v9fs_xattr_set_acl()
313 retval = v9fs_xattr_set(dentry, handler->name, value, size, flags); in v9fs_xattr_set_acl()