xref: /OK3568_Linux_fs/kernel/fs/xfs/xfs_acl.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (c) 2001-2005 Silicon Graphics, Inc.
4*4882a593Smuzhiyun  * All Rights Reserved.
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun #ifndef __XFS_ACL_H__
7*4882a593Smuzhiyun #define __XFS_ACL_H__
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun struct inode;
10*4882a593Smuzhiyun struct posix_acl;
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #ifdef CONFIG_XFS_POSIX_ACL
13*4882a593Smuzhiyun extern struct posix_acl *xfs_get_acl(struct inode *inode, int type);
14*4882a593Smuzhiyun extern int xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
15*4882a593Smuzhiyun extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
16*4882a593Smuzhiyun void xfs_forget_acl(struct inode *inode, const char *name);
17*4882a593Smuzhiyun #else
xfs_get_acl(struct inode * inode,int type)18*4882a593Smuzhiyun static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type)
19*4882a593Smuzhiyun {
20*4882a593Smuzhiyun 	return NULL;
21*4882a593Smuzhiyun }
22*4882a593Smuzhiyun # define xfs_set_acl					NULL
xfs_forget_acl(struct inode * inode,const char * name)23*4882a593Smuzhiyun static inline void xfs_forget_acl(struct inode *inode, const char *name)
24*4882a593Smuzhiyun {
25*4882a593Smuzhiyun }
26*4882a593Smuzhiyun #endif /* CONFIG_XFS_POSIX_ACL */
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif	/* __XFS_ACL_H__ */
29