Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Anna Schumaker | 00a36a10 | 2014-09-03 12:19:08 -0400 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2014 Anna Schumaker. |
| 4 | * |
| 5 | * NFSv3-specific filesystem definitions and declarations |
| 6 | */ |
| 7 | #ifndef __LINUX_FS_NFS_NFS3_FS_H |
| 8 | #define __LINUX_FS_NFS_NFS3_FS_H |
| 9 | |
Anna Schumaker | cb8c20f | 2014-09-03 12:19:10 -0400 | [diff] [blame] | 10 | /* |
| 11 | * nfs3acl.c |
| 12 | */ |
| 13 | #ifdef CONFIG_NFS_V3_ACL |
Miklos Szeredi | 0cad624 | 2021-08-18 22:08:24 +0200 | [diff] [blame] | 14 | extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type, bool rcu); |
Christian Brauner | 549c729 | 2021-01-21 14:19:43 +0100 | [diff] [blame] | 15 | extern int nfs3_set_acl(struct user_namespace *mnt_userns, struct inode *inode, |
| 16 | struct posix_acl *acl, int type); |
Anna Schumaker | cb8c20f | 2014-09-03 12:19:10 -0400 | [diff] [blame] | 17 | extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, |
| 18 | struct posix_acl *dfacl); |
| 19 | extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t); |
| 20 | extern const struct xattr_handler *nfs3_xattr_handlers[]; |
| 21 | #else |
| 22 | static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, |
| 23 | struct posix_acl *dfacl) |
| 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | #define nfs3_listxattr NULL |
| 28 | #endif /* CONFIG_NFS_V3_ACL */ |
| 29 | |
Anna Schumaker | 00a36a10 | 2014-09-03 12:19:08 -0400 | [diff] [blame] | 30 | /* nfs3client.c */ |
Scott Mayhew | 62a55d0 | 2019-12-10 07:31:14 -0500 | [diff] [blame] | 31 | struct nfs_server *nfs3_create_server(struct fs_context *); |
Anna Schumaker | 00a36a10 | 2014-09-03 12:19:08 -0400 | [diff] [blame] | 32 | struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *, |
| 33 | struct nfs_fattr *, rpc_authflavor_t); |
| 34 | |
Peng Tao | 1a04c6e | 2014-05-30 18:15:57 +0800 | [diff] [blame] | 35 | /* nfs3super.c */ |
| 36 | extern struct nfs_subversion nfs_v3; |
Anna Schumaker | 00a36a10 | 2014-09-03 12:19:08 -0400 | [diff] [blame] | 37 | |
| 38 | #endif /* __LINUX_FS_NFS_NFS3_FS_H */ |