1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2014 Anna Schumaker.
5 * NFSv3-specific filesystem definitions and declarations
7 #ifndef __LINUX_FS_NFS_NFS3_FS_H
8 #define __LINUX_FS_NFS_NFS3_FS_H
13 #ifdef CONFIG_NFS_V3_ACL
14 extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type);
15 extern int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type);
16 extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
17 struct posix_acl *dfacl);
18 extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t);
19 extern const struct xattr_handler *nfs3_xattr_handlers[];
21 static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
22 struct posix_acl *dfacl)
26 #define nfs3_listxattr NULL
27 #endif /* CONFIG_NFS_V3_ACL */
30 struct nfs_server *nfs3_create_server(struct nfs_mount_info *, struct nfs_subversion *);
31 struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *,
32 struct nfs_fattr *, rpc_authflavor_t);
35 extern struct nfs_subversion nfs_v3;
37 #endif /* __LINUX_FS_NFS_NFS3_FS_H */