2018-06-06 09:42:14 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
2005-11-02 10:58:39 +07:00
|
|
|
* Copyright (c) 2001-2005 Silicon Graphics, Inc.
|
|
|
|
* All Rights Reserved.
|
2005-04-17 05:20:36 +07:00
|
|
|
*/
|
|
|
|
#ifndef __XFS_ACL_H__
|
|
|
|
#define __XFS_ACL_H__
|
|
|
|
|
2009-06-10 22:07:47 +07:00
|
|
|
struct inode;
|
|
|
|
struct posix_acl;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
#ifdef CONFIG_XFS_POSIX_ACL
|
2009-06-10 22:07:47 +07:00
|
|
|
extern struct posix_acl *xfs_get_acl(struct inode *inode, int type);
|
2013-12-20 20:16:50 +07:00
|
|
|
extern int xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
|
2017-06-26 22:48:18 +07:00
|
|
|
extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
|
2005-04-17 05:20:36 +07:00
|
|
|
#else
|
2011-07-26 16:15:20 +07:00
|
|
|
static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2013-12-20 20:16:50 +07:00
|
|
|
# define xfs_set_acl NULL
|
2009-06-10 22:07:47 +07:00
|
|
|
#endif /* CONFIG_XFS_POSIX_ACL */
|
2015-11-03 08:56:17 +07:00
|
|
|
|
|
|
|
extern void xfs_forget_acl(struct inode *inode, const char *name, int xflags);
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
#endif /* __XFS_ACL_H__ */
|