]>
Commit | Line | Data |
---|---|---|
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 |
9 | struct inode; |
10 | struct posix_acl; | |
1da177e4 | 11 | |
1da177e4 | 12 | #ifdef CONFIG_XFS_POSIX_ACL |
ef14f0c1 | 13 | extern struct posix_acl *xfs_get_acl(struct inode *inode, int type); |
549c7297 CB |
14 | extern int xfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode, |
15 | struct posix_acl *acl, int type); | |
8ba35875 | 16 | extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type); |
5a3930e2 | 17 | void xfs_forget_acl(struct inode *inode, const char *name); |
1da177e4 | 18 | #else |
a5a7bbcc MT |
19 | static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type) |
20 | { | |
21 | return NULL; | |
22 | } | |
2401dc29 | 23 | # define xfs_set_acl NULL |
5a3930e2 CH |
24 | static inline void xfs_forget_acl(struct inode *inode, const char *name) |
25 | { | |
26 | } | |
ef14f0c1 | 27 | #endif /* CONFIG_XFS_POSIX_ACL */ |
47e1bf64 | 28 | |
1da177e4 | 29 | #endif /* __XFS_ACL_H__ */ |