#include <linux/posix_acl_xattr.h>
#define EXT2_ACL_VERSION …
ext2_acl_entry;
ext2_acl_entry_short;
ext2_acl_header;
static inline size_t ext2_acl_size(int count)
{ … }
static inline int ext2_acl_count(size_t size)
{ … }
#ifdef CONFIG_EXT2_FS_POSIX_ACL
extern struct posix_acl *ext2_get_acl(struct inode *inode, int type, bool rcu);
extern int ext2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
struct posix_acl *acl, int type);
extern int ext2_init_acl (struct inode *, struct inode *);
#else
#include <linux/sched.h>
#define ext2_get_acl …
#define ext2_set_acl …
static inline int ext2_init_acl (struct inode *inode, struct inode *dir)
{
return 0;
}
#endif