ASoC: SOF: Intel: hda-dai-ops: use dai_type
[linux-2.6-block.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 <aneesh.kumar@linux.vnet.ibm.com>
85ff872d
AK
5 */
6#ifndef FS_9P_ACL_H
7#define FS_9P_ACL_H
8
9#ifdef CONFIG_9P_FS_POSIX_ACL
6e195b0f 10int v9fs_get_acl(struct inode *inode, struct p9_fid *fid);
6cd4d4e8 11struct posix_acl *v9fs_iop_get_inode_acl(struct inode *inode, int type,
6e195b0f 12 bool rcu);
77435322 13struct posix_acl *v9fs_iop_get_acl(struct mnt_idmap *idmap,
6cd4d4e8 14 struct dentry *dentry, int type);
13e83a49 15int v9fs_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
079da629 16 struct posix_acl *acl, int type);
6e195b0f
DM
17int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid);
18int v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid,
19 struct posix_acl *dacl, struct posix_acl *acl);
20int v9fs_acl_mode(struct inode *dir, umode_t *modep,
21 struct posix_acl **dpacl, struct posix_acl **pacl);
22void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl);
85ff872d 23#else
6cd4d4e8 24#define v9fs_iop_get_inode_acl NULL
4e34e719 25#define v9fs_iop_get_acl NULL
079da629 26#define v9fs_iop_set_acl NULL
85ff872d
AK
27static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid)
28{
29 return 0;
30}
be308f07 31static inline int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid)
6e8dc555
AK
32{
33 return 0;
34}
3592ac44
AV
35static inline int v9fs_set_create_acl(struct inode *inode,
36 struct p9_fid *fid,
5fa6300a
AV
37 struct posix_acl *dacl,
38 struct posix_acl *acl)
ad77dbce
AK
39{
40 return 0;
41}
5fa6300a
AV
42static inline void v9fs_put_acl(struct posix_acl *dacl,
43 struct posix_acl *acl)
44{
45}
d3fb6120 46static inline int v9fs_acl_mode(struct inode *dir, umode_t *modep,
ad77dbce
AK
47 struct posix_acl **dpacl,
48 struct posix_acl **pacl)
49{
50 return 0;
51}
52
85ff872d
AK
53#endif
54#endif /* FS_9P_XATTR_H */