diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-09-03 12:19:08 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-12 13:49:40 -0400 |
commit | 00a36a1090350995127c2a4bfac6be7fc85b5b81 (patch) | |
tree | 8600398719bb56609ff92a570d929970f0bb53ae | |
parent | f418c64b71590bac8fdebd0969a1eeaffaf036d2 (diff) |
NFS: Move v3 declarations out of internal.h
I am generally against the "one big header file" approach, and
everything in the client includes this file. Let's move all the NFS v3
declarations into a v3-only header file.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
-rw-r--r-- | fs/nfs/internal.h | 7 | ||||
-rw-r--r-- | fs/nfs/nfs3_fs.h | 15 | ||||
-rw-r--r-- | fs/nfs/nfs3proc.c | 1 |
3 files changed, 16 insertions, 7 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 9056622d2230..14ae6f20a172 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -218,13 +218,6 @@ static inline void nfs_fs_proc_exit(void) | |||
218 | int nfs_sockaddr_match_ipaddr(const struct sockaddr *, const struct sockaddr *); | 218 | int nfs_sockaddr_match_ipaddr(const struct sockaddr *, const struct sockaddr *); |
219 | #endif | 219 | #endif |
220 | 220 | ||
221 | /* nfs3client.c */ | ||
222 | #if IS_ENABLED(CONFIG_NFS_V3) | ||
223 | struct nfs_server *nfs3_create_server(struct nfs_mount_info *, struct nfs_subversion *); | ||
224 | struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *, | ||
225 | struct nfs_fattr *, rpc_authflavor_t); | ||
226 | #endif | ||
227 | |||
228 | /* callback_xdr.c */ | 221 | /* callback_xdr.c */ |
229 | extern struct svc_version nfs4_callback_version1; | 222 | extern struct svc_version nfs4_callback_version1; |
230 | extern struct svc_version nfs4_callback_version4; | 223 | extern struct svc_version nfs4_callback_version4; |
diff --git a/fs/nfs/nfs3_fs.h b/fs/nfs/nfs3_fs.h new file mode 100644 index 000000000000..6599e0dcd69f --- /dev/null +++ b/fs/nfs/nfs3_fs.h | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014 Anna Schumaker. | ||
3 | * | ||
4 | * NFSv3-specific filesystem definitions and declarations | ||
5 | */ | ||
6 | #ifndef __LINUX_FS_NFS_NFS3_FS_H | ||
7 | #define __LINUX_FS_NFS_NFS3_FS_H | ||
8 | |||
9 | /* nfs3client.c */ | ||
10 | struct nfs_server *nfs3_create_server(struct nfs_mount_info *, struct nfs_subversion *); | ||
11 | struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *, | ||
12 | struct nfs_fattr *, rpc_authflavor_t); | ||
13 | |||
14 | |||
15 | #endif /* __LINUX_FS_NFS_NFS3_FS_H */ | ||
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 809670eba52a..524f9f837408 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include "iostat.h" | 23 | #include "iostat.h" |
24 | #include "internal.h" | 24 | #include "internal.h" |
25 | #include "nfs3_fs.h" | ||
25 | 26 | ||
26 | #define NFSDBG_FACILITY NFSDBG_PROC | 27 | #define NFSDBG_FACILITY NFSDBG_PROC |
27 | 28 | ||