Merge branch 'next' into for-linus
[linux-block.git] / fs / xfs / xfs_acl.h
CommitLineData
0b61f8a4 1// SPDX-License-Identifier: GPL-2.0
1da177e4 2/*
7b718769
NS
3 * Copyright (c) 2001-2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
1da177e4
LT
5 */
6#ifndef __XFS_ACL_H__
7#define __XFS_ACL_H__
8
ef14f0c1
CH
9struct inode;
10struct posix_acl;
1da177e4 11
1da177e4 12#ifdef CONFIG_XFS_POSIX_ACL
0cad6246 13extern struct posix_acl *xfs_get_acl(struct inode *inode, int type, bool rcu);
13e83a49 14extern int xfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
549c7297 15 struct posix_acl *acl, int type);
8ba35875 16extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
5a3930e2 17void xfs_forget_acl(struct inode *inode, const char *name);
1da177e4 18#else
1a338506
YX
19#define xfs_get_acl NULL
20#define xfs_set_acl NULL
21static inline int __xfs_set_acl(struct inode *inode, struct posix_acl *acl,
22 int type)
a5a7bbcc 23{
1a338506 24 return 0;
a5a7bbcc 25}
5a3930e2
CH
26static inline void xfs_forget_acl(struct inode *inode, const char *name)
27{
28}
ef14f0c1 29#endif /* CONFIG_XFS_POSIX_ACL */
47e1bf64 30
1da177e4 31#endif /* __XFS_ACL_H__ */