0001
0002
0003
0004
0005
0006 #ifndef __XFS_ACL_H__
0007 #define __XFS_ACL_H__
0008
0009 struct inode;
0010 struct posix_acl;
0011
0012 #ifdef CONFIG_XFS_POSIX_ACL
0013 extern struct posix_acl *xfs_get_acl(struct inode *inode, int type, bool rcu);
0014 extern int xfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
0015 struct posix_acl *acl, int type);
0016 extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
0017 void xfs_forget_acl(struct inode *inode, const char *name);
0018 #else
0019 #define xfs_get_acl NULL
0020 #define xfs_set_acl NULL
0021 static inline int __xfs_set_acl(struct inode *inode, struct posix_acl *acl,
0022 int type)
0023 {
0024 return 0;
0025 }
0026 static inline void xfs_forget_acl(struct inode *inode, const char *name)
0027 {
0028 }
0029 #endif
0030
0031 #endif