2018-06-05 19:42:14 -07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2005-04-16 15:20:36 -07:00
|
|
|
/*
|
2005-11-02 14:58:39 +11:00
|
|
|
* Copyright (c) 2001-2005 Silicon Graphics, Inc.
|
|
|
|
* All Rights Reserved.
|
2005-04-16 15:20:36 -07:00
|
|
|
*/
|
|
|
|
#ifndef __XFS_ACL_H__
|
|
|
|
#define __XFS_ACL_H__
|
|
|
|
|
2009-06-10 17:07:47 +02:00
|
|
|
struct inode;
|
|
|
|
struct posix_acl;
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
#ifdef CONFIG_XFS_POSIX_ACL
|
2021-08-18 22:08:24 +02:00
|
|
|
extern struct posix_acl *xfs_get_acl(struct inode *inode, int type, bool rcu);
|
2023-01-13 12:49:20 +01:00
|
|
|
extern int xfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
2021-01-21 14:19:43 +01:00
|
|
|
struct posix_acl *acl, int type);
|
2017-06-26 08:48:18 -07:00
|
|
|
extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
|
2020-02-26 17:30:41 -08:00
|
|
|
void xfs_forget_acl(struct inode *inode, const char *name);
|
2005-04-16 15:20:36 -07:00
|
|
|
#else
|
2022-04-26 13:34:42 +10:00
|
|
|
#define xfs_get_acl NULL
|
|
|
|
#define xfs_set_acl NULL
|
|
|
|
static inline int __xfs_set_acl(struct inode *inode, struct posix_acl *acl,
|
|
|
|
int type)
|
2011-07-26 11:15:20 +02:00
|
|
|
{
|
2022-04-26 13:34:42 +10:00
|
|
|
return 0;
|
2011-07-26 11:15:20 +02:00
|
|
|
}
|
2020-02-26 17:30:41 -08:00
|
|
|
static inline void xfs_forget_acl(struct inode *inode, const char *name)
|
|
|
|
{
|
|
|
|
}
|
2009-06-10 17:07:47 +02:00
|
|
|
#endif /* CONFIG_XFS_POSIX_ACL */
|
2015-11-03 12:56:17 +11:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
#endif /* __XFS_ACL_H__ */
|