aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-07-30 16:05:25 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-07-30 19:06:52 -0400
commit89d77c8fa8e6d1cb7e2cce95b428be30ddcc6f23 (patch)
tree37a076ec2675209fd78bc6ac0474dbecee8d11e7 /fs/nfs/internal.h
parent1c606fb74c758beafd98cbad9a9133eadeec2371 (diff)
NFS: Convert v4 into a module
This patch exports symbols needed by the v4 module. In addition, I also switch over to using IS_ENABLED() to check if CONFIG_NFS_V4 or CONFIG_NFS_V4_MODULE are set. The module (nfs4.ko) will be created in the same directory as nfs.ko and will be automatically loaded the first time you try to mount over NFS v4. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 64f0dc41a9b7..8865538b26b6 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -262,7 +262,7 @@ extern int nfs3_decode_dirent(struct xdr_stream *,
262 struct nfs_entry *, int); 262 struct nfs_entry *, int);
263 263
264/* nfs4xdr.c */ 264/* nfs4xdr.c */
265#ifdef CONFIG_NFS_V4 265#if IS_ENABLED(CONFIG_NFS_V4)
266extern int nfs4_decode_dirent(struct xdr_stream *, 266extern int nfs4_decode_dirent(struct xdr_stream *,
267 struct nfs_entry *, int); 267 struct nfs_entry *, int);
268#endif 268#endif
@@ -272,7 +272,7 @@ extern const u32 nfs41_maxwrite_overhead;
272#endif 272#endif
273 273
274/* nfs4proc.c */ 274/* nfs4proc.c */
275#ifdef CONFIG_NFS_V4 275#if IS_ENABLED(CONFIG_NFS_V4)
276extern struct rpc_procinfo nfs4_procedures[]; 276extern struct rpc_procinfo nfs4_procedures[];
277#endif 277#endif
278 278
@@ -328,7 +328,7 @@ extern int nfs_wait_bit_killable(void *word);
328extern const struct super_operations nfs_sops; 328extern const struct super_operations nfs_sops;
329extern struct file_system_type nfs_fs_type; 329extern struct file_system_type nfs_fs_type;
330extern struct file_system_type nfs_xdev_fs_type; 330extern struct file_system_type nfs_xdev_fs_type;
331#ifdef CONFIG_NFS_V4 331#if IS_ENABLED(CONFIG_NFS_V4)
332extern struct file_system_type nfs4_xdev_fs_type; 332extern struct file_system_type nfs4_xdev_fs_type;
333extern struct file_system_type nfs4_referral_fs_type; 333extern struct file_system_type nfs4_referral_fs_type;
334#endif 334#endif
@@ -364,7 +364,7 @@ struct vfsmount *nfs_do_submount(struct dentry *, struct nfs_fh *,
364/* getroot.c */ 364/* getroot.c */
365extern struct dentry *nfs_get_root(struct super_block *, struct nfs_fh *, 365extern struct dentry *nfs_get_root(struct super_block *, struct nfs_fh *,
366 const char *); 366 const char *);
367#ifdef CONFIG_NFS_V4 367#if IS_ENABLED(CONFIG_NFS_V4)
368extern struct dentry *nfs4_get_root(struct super_block *, struct nfs_fh *, 368extern struct dentry *nfs4_get_root(struct super_block *, struct nfs_fh *,
369 const char *); 369 const char *);
370 370