xref: /openbmc/linux/fs/9p/acl.h (revision 85ff872d)
185ff872dSAneesh Kumar K.V /*
285ff872dSAneesh Kumar K.V  * Copyright IBM Corporation, 2010
385ff872dSAneesh Kumar K.V  * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
485ff872dSAneesh Kumar K.V  *
585ff872dSAneesh Kumar K.V  * This program is free software; you can redistribute it and/or modify it
685ff872dSAneesh Kumar K.V  * under the terms of version 2.1 of the GNU Lesser General Public License
785ff872dSAneesh Kumar K.V  * as published by the Free Software Foundation.
885ff872dSAneesh Kumar K.V  *
985ff872dSAneesh Kumar K.V  * This program is distributed in the hope that it would be useful, but
1085ff872dSAneesh Kumar K.V  * WITHOUT ANY WARRANTY; without even the implied warranty of
1185ff872dSAneesh Kumar K.V  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1285ff872dSAneesh Kumar K.V  *
1385ff872dSAneesh Kumar K.V  */
1485ff872dSAneesh Kumar K.V #ifndef FS_9P_ACL_H
1585ff872dSAneesh Kumar K.V #define FS_9P_ACL_H
1685ff872dSAneesh Kumar K.V 
1785ff872dSAneesh Kumar K.V #ifdef CONFIG_9P_FS_POSIX_ACL
1885ff872dSAneesh Kumar K.V extern int v9fs_get_acl(struct inode *, struct p9_fid *);
1985ff872dSAneesh Kumar K.V extern int v9fs_check_acl(struct inode *inode, int mask);
2085ff872dSAneesh Kumar K.V #else
2185ff872dSAneesh Kumar K.V #define v9fs_check_acl NULL
2285ff872dSAneesh Kumar K.V static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid)
2385ff872dSAneesh Kumar K.V {
2485ff872dSAneesh Kumar K.V 	return 0;
2585ff872dSAneesh Kumar K.V }
2685ff872dSAneesh Kumar K.V #endif
2785ff872dSAneesh Kumar K.V #endif /* FS_9P_XATTR_H */
28