xref: /kernel/linux/linux-6.6/fs/btrfs/acl.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/fs/btrfs/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci#ifndef BTRFS_ACL_H
462306a36Sopenharmony_ci#define BTRFS_ACL_H
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifdef CONFIG_BTRFS_FS_POSIX_ACL
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct posix_acl *btrfs_get_acl(struct inode *inode, int type, bool rcu);
962306a36Sopenharmony_ciint btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
1062306a36Sopenharmony_ci		  struct posix_acl *acl, int type);
1162306a36Sopenharmony_ciint __btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode,
1262306a36Sopenharmony_ci		    struct posix_acl *acl, int type);
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#else
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#define btrfs_get_acl NULL
1762306a36Sopenharmony_ci#define btrfs_set_acl NULL
1862306a36Sopenharmony_cistatic inline int __btrfs_set_acl(struct btrfs_trans_handle *trans,
1962306a36Sopenharmony_ci				  struct inode *inode, struct posix_acl *acl,
2062306a36Sopenharmony_ci				  int type)
2162306a36Sopenharmony_ci{
2262306a36Sopenharmony_ci	return -EOPNOTSUPP;
2362306a36Sopenharmony_ci}
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#endif
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci#endif
28

Indexes created Thu Nov 07 10:32:03 CST 2024