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