drm/tests: Add test for drm_atomic_helper_check_modeset()
[drm/drm-misc.git] / fs / xfs / xfs_acl.h
blobbf7f960997d36a774ae26f382a4c0fdeb09f449b
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2001-2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
5 */
6 #ifndef __XFS_ACL_H__
7 #define __XFS_ACL_H__
9 struct inode;
10 struct posix_acl;
12 #ifdef CONFIG_XFS_POSIX_ACL
13 extern struct posix_acl *xfs_get_acl(struct inode *inode, int type, bool rcu);
14 extern int xfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
15 struct posix_acl *acl, int type);
16 extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
17 void xfs_forget_acl(struct inode *inode, const char *name);
18 #else
19 #define xfs_get_acl NULL
20 #define xfs_set_acl NULL
21 static inline int __xfs_set_acl(struct inode *inode, struct posix_acl *acl,
22 int type)
24 return 0;
26 static inline void xfs_forget_acl(struct inode *inode, const char *name)
29 #endif /* CONFIG_XFS_POSIX_ACL */
31 #endif /* __XFS_ACL_H__ */