/* Allocate a new ACL with the specified number of entries.  */
struct posix_acl* posix_acl_alloc(int count, gfp_t flags)
/* Allocate a new ACL with the specified number of entries.  */
struct posix_acl* posix_acl_alloc(int count, gfp_t flags)
{
	const size_t size = sizeof(struct posix_acl) +
	                    count * sizeof(struct posix_acl_entry);
	struct posix_acl *acl = kmalloc(size, flags);
	if (acl) {
		atomic_set(&acl->a_refcount, 1);
		acl->a_count = count;
	}
	return acl;
}