1
2
3
4
5
6#ifndef __XFS_ACL_H__
7#define __XFS_ACL_H__
8
9struct inode;
10struct posix_acl;
11
12#ifdef CONFIG_XFS_POSIX_ACL
13extern struct posix_acl *xfs_get_acl(struct inode *inode, int type, bool rcu);
14extern int xfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
15 struct posix_acl *acl, int type);
16extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
17void xfs_forget_acl(struct inode *inode, const char *name);
18#else
19static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type, bool rcu)
20{
21 return NULL;
22}
23# define xfs_set_acl NULL
24static inline void xfs_forget_acl(struct inode *inode, const char *name)
25{
26}
27#endif
28
29#endif
30