#include <linux/posix_acl_xattr.h>
#define EXT4_ACL_VERSION …
ext4_acl_entry;
ext4_acl_entry_short;
ext4_acl_header;
static inline size_t ext4_acl_size(int count)
{ … }
static inline int ext4_acl_count(size_t size)
{ … }
#ifdef CONFIG_EXT4_FS_POSIX_ACL
struct posix_acl *ext4_get_acl(struct inode *inode, int type, bool rcu);
int ext4_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
struct posix_acl *acl, int type);
extern int ext4_init_acl(handle_t *, struct inode *, struct inode *);
#else
#include <linux/sched.h>
#define ext4_get_acl …
#define ext4_set_acl …
static inline int
ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir)
{
return 0;
}
#endif