]> Git Repo - linux.git/blame - fs/9p/acl.h
mmc: sdhci-pci-o2micro: Improve card input timing at SDR104/HS200 mode
[linux.git] / fs / 9p / acl.h
CommitLineData
024b7d6a 1/* SPDX-License-Identifier: LGPL-2.1 */
85ff872d
AK
2/*
3 * Copyright IBM Corporation, 2010
4 * Author Aneesh Kumar K.V <[email protected]>
85ff872d
AK
5 */
6#ifndef FS_9P_ACL_H
7#define FS_9P_ACL_H
8
9#ifdef CONFIG_9P_FS_POSIX_ACL
6e195b0f
DM
10int v9fs_get_acl(struct inode *inode, struct p9_fid *fid);
11struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type,
12 bool rcu);
13int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid);
14int v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid,
15 struct posix_acl *dacl, struct posix_acl *acl);
16int v9fs_acl_mode(struct inode *dir, umode_t *modep,
17 struct posix_acl **dpacl, struct posix_acl **pacl);
18void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl);
85ff872d 19#else
4e34e719 20#define v9fs_iop_get_acl NULL
85ff872d
AK
21static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid)
22{
23 return 0;
24}
be308f07 25static inline int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid)
6e8dc555
AK
26{
27 return 0;
28}
3592ac44
AV
29static inline int v9fs_set_create_acl(struct inode *inode,
30 struct p9_fid *fid,
5fa6300a
AV
31 struct posix_acl *dacl,
32 struct posix_acl *acl)
ad77dbce
AK
33{
34 return 0;
35}
5fa6300a
AV
36static inline void v9fs_put_acl(struct posix_acl *dacl,
37 struct posix_acl *acl)
38{
39}
d3fb6120 40static inline int v9fs_acl_mode(struct inode *dir, umode_t *modep,
ad77dbce
AK
41 struct posix_acl **dpacl,
42 struct posix_acl **pacl)
43{
44 return 0;
45}
46
85ff872d
AK
47#endif
48#endif /* FS_9P_XATTR_H */
This page took 0.502924 seconds and 4 git commands to generate.