diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-30 16:05:25 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-30 19:06:52 -0400 |
commit | 89d77c8fa8e6d1cb7e2cce95b428be30ddcc6f23 (patch) | |
tree | 37a076ec2675209fd78bc6ac0474dbecee8d11e7 /fs/nfs/nfs4_fs.h | |
parent | 1c606fb74c758beafd98cbad9a9133eadeec2371 (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/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index bafe5186c9cd..3b950dd81e81 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #ifndef __LINUX_FS_NFS_NFS4_FS_H | 9 | #ifndef __LINUX_FS_NFS_NFS4_FS_H |
10 | #define __LINUX_FS_NFS_NFS4_FS_H | 10 | #define __LINUX_FS_NFS_NFS4_FS_H |
11 | 11 | ||
12 | #ifdef CONFIG_NFS_V4 | 12 | #if IS_ENABLED(CONFIG_NFS_V4) |
13 | 13 | ||
14 | struct idmap; | 14 | struct idmap; |
15 | 15 | ||
@@ -365,11 +365,10 @@ extern const nfs4_stateid zero_stateid; | |||
365 | struct nfs_mount_info; | 365 | struct nfs_mount_info; |
366 | extern struct nfs_subversion nfs_v4; | 366 | extern struct nfs_subversion nfs_v4; |
367 | struct dentry *nfs4_try_mount(int, const char *, struct nfs_mount_info *, struct nfs_subversion *); | 367 | struct dentry *nfs4_try_mount(int, const char *, struct nfs_mount_info *, struct nfs_subversion *); |
368 | int init_nfs_v4(void); | ||
369 | void exit_nfs_v4(void); | ||
370 | extern bool nfs4_disable_idmapping; | 368 | extern bool nfs4_disable_idmapping; |
371 | extern unsigned short max_session_slots; | 369 | extern unsigned short max_session_slots; |
372 | extern unsigned short send_implementation_id; | 370 | extern unsigned short send_implementation_id; |
371 | |||
373 | /* nfs4sysctl.c */ | 372 | /* nfs4sysctl.c */ |
374 | #ifdef CONFIG_SYSCTL | 373 | #ifdef CONFIG_SYSCTL |
375 | int nfs4_register_sysctl(void); | 374 | int nfs4_register_sysctl(void); |