133cf97a7SJosef Bacik /* SPDX-License-Identifier: GPL-2.0 */ 233cf97a7SJosef Bacik 333cf97a7SJosef Bacik #ifndef BTRFS_ACL_H 433cf97a7SJosef Bacik #define BTRFS_ACL_H 533cf97a7SJosef Bacik 633cf97a7SJosef Bacik #ifdef CONFIG_BTRFS_FS_POSIX_ACL 733cf97a7SJosef Bacik 833cf97a7SJosef Bacik struct posix_acl *btrfs_get_acl(struct inode *inode, int type, bool rcu); 9*13e83a49SChristian Brauner int btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, 1033cf97a7SJosef Bacik struct posix_acl *acl, int type); 1133cf97a7SJosef Bacik int __btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode, 1233cf97a7SJosef Bacik struct posix_acl *acl, int type); 1333cf97a7SJosef Bacik 1433cf97a7SJosef Bacik #else 1533cf97a7SJosef Bacik 1633cf97a7SJosef Bacik #define btrfs_get_acl NULL 1733cf97a7SJosef Bacik #define btrfs_set_acl NULL 1833cf97a7SJosef Bacik static inline int __btrfs_set_acl(struct btrfs_trans_handle *trans, 1933cf97a7SJosef Bacik struct inode *inode, struct posix_acl *acl, 2033cf97a7SJosef Bacik int type) 2133cf97a7SJosef Bacik { 2233cf97a7SJosef Bacik return -EOPNOTSUPP; 2333cf97a7SJosef Bacik } 2433cf97a7SJosef Bacik 2533cf97a7SJosef Bacik #endif 2633cf97a7SJosef Bacik 2733cf97a7SJosef Bacik #endif 28