Lines Matching refs:size
29 static inline int f2fs_acl_count(size_t size)
32 size -= sizeof(struct f2fs_acl_header);
33 s = size - 4 * sizeof(struct f2fs_acl_entry_short);
35 if (size % sizeof(struct f2fs_acl_entry_short))
37 return size / sizeof(struct f2fs_acl_entry_short);
45 static struct posix_acl *f2fs_acl_from_disk(const char *value, size_t size)
51 const char *end = value + size;
53 if (size < sizeof(struct f2fs_acl_header))
59 count = f2fs_acl_count(size);
113 const struct posix_acl *acl, size_t *size)
159 *size = f2fs_acl_size(acl->a_count);
208 size_t size = 0;
234 value = f2fs_acl_to_disk(F2FS_I_SB(inode), acl, &size);
241 error = f2fs_setxattr(inode, name_index, "", value, size, ipage, 0);
269 int size = sizeof(struct posix_acl) + acl->a_count *
271 clone = kmemdup(acl, size, flags);