Lines Matching refs:value
20 ext2_acl_from_disk(const void *value, size_t size) in ext2_acl_from_disk() argument
22 const char *end = (char *)value + size; in ext2_acl_from_disk()
26 if (!value) in ext2_acl_from_disk()
30 if (((ext2_acl_header *)value)->a_version != in ext2_acl_from_disk()
33 value = (char *)value + sizeof(ext2_acl_header); in ext2_acl_from_disk()
44 (ext2_acl_entry *)value; in ext2_acl_from_disk()
45 if ((char *)value + sizeof(ext2_acl_entry_short) > end) in ext2_acl_from_disk()
54 value = (char *)value + in ext2_acl_from_disk()
59 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk()
60 if ((char *)value > end) in ext2_acl_from_disk()
67 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk()
68 if ((char *)value > end) in ext2_acl_from_disk()
79 if (value != end) in ext2_acl_from_disk()
147 char *value = NULL; in ext2_get_acl() local
166 value = kmalloc(retval, GFP_KERNEL); in ext2_get_acl()
167 if (!value) in ext2_get_acl()
169 retval = ext2_xattr_get(inode, name_index, "", value, retval); in ext2_get_acl()
172 acl = ext2_acl_from_disk(value, retval); in ext2_get_acl()
177 kfree(value); in ext2_get_acl()
186 void *value = NULL; in __ext2_set_acl() local
205 value = ext2_acl_to_disk(acl, &size); in __ext2_set_acl()
206 if (IS_ERR(value)) in __ext2_set_acl()
207 return (int)PTR_ERR(value); in __ext2_set_acl()
210 error = ext2_xattr_set(inode, name_index, "", value, size, 0); in __ext2_set_acl()
212 kfree(value); in __ext2_set_acl()