Merge tag 'rproc-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc...
[linux.git] / fs / nfs / nfs.h
blob8a5f51be013a6ab4c1557934246fa56911cc72ce
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (c) 2012 Netapp, Inc. All rights reserved.
5 * Function and structures exported by the NFS module
6 * for use by NFS version-specific modules.
7 */
8 #ifndef __LINUX_INTERNAL_NFS_H
9 #define __LINUX_INTERNAL_NFS_H
11 #include <linux/fs.h>
12 #include <linux/sunrpc/sched.h>
13 #include <linux/nfs_xdr.h>
15 struct nfs_subversion {
16 struct module *owner; /* THIS_MODULE pointer */
17 struct file_system_type *nfs_fs; /* NFS filesystem type */
18 const struct rpc_version *rpc_vers; /* NFS version information */
19 const struct nfs_rpc_ops *rpc_ops; /* NFS operations */
20 const struct super_operations *sops; /* NFS Super operations */
21 const struct xattr_handler * const *xattr; /* NFS xattr handlers */
24 struct nfs_subversion *find_nfs_version(unsigned int);
25 int get_nfs_version(struct nfs_subversion *);
26 void put_nfs_version(struct nfs_subversion *);
27 void register_nfs_version(struct nfs_subversion *);
28 void unregister_nfs_version(struct nfs_subversion *);
30 #endif /* __LINUX_INTERNAL_NFS_H */