acl.h (d0e99511834b6828c960e978d9a8cb6e5731250d) | acl.h (13e83a4923bea7c4f2f6714030cb7e56d20ef7e5) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2 3#ifndef BTRFS_ACL_H 4#define BTRFS_ACL_H 5 6#ifdef CONFIG_BTRFS_FS_POSIX_ACL 7 8struct posix_acl *btrfs_get_acl(struct inode *inode, int type, bool rcu); | 1/* SPDX-License-Identifier: GPL-2.0 */ 2 3#ifndef BTRFS_ACL_H 4#define BTRFS_ACL_H 5 6#ifdef CONFIG_BTRFS_FS_POSIX_ACL 7 8struct posix_acl *btrfs_get_acl(struct inode *inode, int type, bool rcu); |
9int btrfs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry, | 9int btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, |
10 struct posix_acl *acl, int type); 11int __btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode, 12 struct posix_acl *acl, int type); 13 14#else 15 16#define btrfs_get_acl NULL 17#define btrfs_set_acl NULL 18static inline int __btrfs_set_acl(struct btrfs_trans_handle *trans, 19 struct inode *inode, struct posix_acl *acl, 20 int type) 21{ 22 return -EOPNOTSUPP; 23} 24 25#endif 26 27#endif | 10 struct posix_acl *acl, int type); 11int __btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode, 12 struct posix_acl *acl, int type); 13 14#else 15 16#define btrfs_get_acl NULL 17#define btrfs_set_acl NULL 18static inline int __btrfs_set_acl(struct btrfs_trans_handle *trans, 19 struct inode *inode, struct posix_acl *acl, 20 int type) 21{ 22 return -EOPNOTSUPP; 23} 24 25#endif 26 27#endif |