File Index
Files and directories
Sign in
FILE

acl.h

File preview with syntax highlighting.

linux-6.19.14/fs/btrfs/acl.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2
 3#ifndef BTRFS_ACL_H
 4#define BTRFS_ACL_H
 5
 6#include <linux/types.h>
 7
 8struct posix_acl;
 9struct inode;
10struct btrfs_trans_handle;
11
12#ifdef CONFIG_BTRFS_FS_POSIX_ACL
13
14struct mnt_idmap;
15struct dentry;
16
17struct posix_acl *btrfs_get_acl(struct inode *inode, int type, bool rcu);
18int btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
19		  struct posix_acl *acl, int type);
20int __btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode,
21		    struct posix_acl *acl, int type);
22
23#else
24
25#include <linux/errno.h>
26
27struct btrfs_trans_handle;
28
29#define btrfs_get_acl NULL
30#define btrfs_set_acl NULL
31static inline int __btrfs_set_acl(struct btrfs_trans_handle *trans,
32				  struct inode *inode, struct posix_acl *acl,
33				  int type)
34{
35	return -EOPNOTSUPP;
36}
37
38#endif
39
40#endif
~/ Read-only file preview.