Lines Matching defs:value
55 static struct posix_acl *jffs2_acl_from_medium(void *value, size_t size)
57 void *end = value + size;
58 struct jffs2_acl_header *header = value;
64 if (!value)
74 value += sizeof(struct jffs2_acl_header);
86 entry = value;
87 if (value + sizeof(struct jffs2_acl_entry_short) > end)
96 value += sizeof(struct jffs2_acl_entry_short);
100 value += sizeof(struct jffs2_acl_entry);
101 if (value > end)
108 value += sizeof(struct jffs2_acl_entry);
109 if (value > end)
120 if (value != end)
179 char *value = NULL;
197 value = kmalloc(rc, GFP_KERNEL);
198 if (!value)
200 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc);
203 acl = jffs2_acl_from_medium(value, rc);
209 kfree(value);
215 char *value = NULL;
220 value = jffs2_acl_to_medium(acl, &size);
221 if (IS_ERR(value))
222 return PTR_ERR(value);
224 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0);
225 if (!value && rc == -ENODATA)
227 kfree(value);