xref: /OK3568_Linux_fs/kernel/fs/nfs/nfs3_fs.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2014 Anna Schumaker.
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * NFSv3-specific filesystem definitions and declarations
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun #ifndef __LINUX_FS_NFS_NFS3_FS_H
8*4882a593Smuzhiyun #define __LINUX_FS_NFS_NFS3_FS_H
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun /*
11*4882a593Smuzhiyun  * nfs3acl.c
12*4882a593Smuzhiyun  */
13*4882a593Smuzhiyun #ifdef CONFIG_NFS_V3_ACL
14*4882a593Smuzhiyun extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type);
15*4882a593Smuzhiyun extern int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type);
16*4882a593Smuzhiyun extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
17*4882a593Smuzhiyun 		struct posix_acl *dfacl);
18*4882a593Smuzhiyun extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t);
19*4882a593Smuzhiyun extern const struct xattr_handler *nfs3_xattr_handlers[];
20*4882a593Smuzhiyun #else
nfs3_proc_setacls(struct inode * inode,struct posix_acl * acl,struct posix_acl * dfacl)21*4882a593Smuzhiyun static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
22*4882a593Smuzhiyun 		struct posix_acl *dfacl)
23*4882a593Smuzhiyun {
24*4882a593Smuzhiyun 	return 0;
25*4882a593Smuzhiyun }
26*4882a593Smuzhiyun #define nfs3_listxattr NULL
27*4882a593Smuzhiyun #endif /* CONFIG_NFS_V3_ACL */
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun /* nfs3client.c */
30*4882a593Smuzhiyun struct nfs_server *nfs3_create_server(struct fs_context *);
31*4882a593Smuzhiyun struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *,
32*4882a593Smuzhiyun 				     struct nfs_fattr *, rpc_authflavor_t);
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun /* nfs3super.c */
35*4882a593Smuzhiyun extern struct nfs_subversion nfs_v3;
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun #endif /* __LINUX_FS_NFS_NFS3_FS_H */
38