Lines Matching refs:size
38 static int jffs2_acl_count(size_t size)
42 size -= sizeof(struct jffs2_acl_header);
43 if (size < 4 * sizeof(struct jffs2_acl_entry_short)) {
44 if (size % sizeof(struct jffs2_acl_entry_short))
46 return size / sizeof(struct jffs2_acl_entry_short);
48 s = size - 4 * sizeof(struct jffs2_acl_entry_short);
55 static struct posix_acl *jffs2_acl_from_medium(void *value, size_t size)
57 void *end = value + size;
66 if (size < sizeof(struct jffs2_acl_header))
75 count = jffs2_acl_count(size);
128 static void *jffs2_acl_to_medium(const struct posix_acl *acl, size_t *size)
135 *size = jffs2_acl_size(acl->a_count);
213 size_t size = 0;
217 value = jffs2_acl_to_medium(acl, &size);
221 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0);