1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_ACL_H
3 #define _BCACHEFS_ACL_H
5 struct bch_inode_unpacked;
10 #ifdef CONFIG_BCACHEFS_POSIX_ACL
12 #define BCH_ACL_VERSION 0x0001
23 } bch_acl_entry_short;
29 struct posix_acl *bch2_get_acl(struct mnt_idmap *, struct dentry *, int);
31 int bch2_set_acl_trans(struct btree_trans *, subvol_inum,
32 struct bch_inode_unpacked *,
33 struct posix_acl *, int);
34 int bch2_set_acl(struct mnt_idmap *, struct dentry *, struct posix_acl *, int);
35 int bch2_acl_chmod(struct btree_trans *, subvol_inum,
36 struct bch_inode_unpacked *,
37 umode_t, struct posix_acl **);
41 static inline int bch2_set_acl_trans(struct btree_trans *trans, subvol_inum inum,
42 struct bch_inode_unpacked *inode_u,
43 struct posix_acl *acl, int type)
48 static inline int bch2_acl_chmod(struct btree_trans *trans, subvol_inum inum,
49 struct bch_inode_unpacked *inode,
51 struct posix_acl **new_acl)
56 #endif /* CONFIG_BCACHEFS_POSIX_ACL */
58 #endif /* _BCACHEFS_ACL_H */