diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-12-23 15:21:35 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-12-23 15:21:35 -0500 |
commit | c5d120f8e8b464368a7dcb038dc5c077d234d10a (patch) | |
tree | 28ec4ffebf3ebe0cdd1ed9c5ba174457b5960e32 /fs/nfs/internal.h | |
parent | 146ec944bbd31d241a44a00518b054fb01921d22 (diff) |
NFS: introduce nfs_mount_info struct for calling nfs_mount()
Clean up: convert nfs_mount() to take a single data structure argument to make
it simpler to add more arguments.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 7a38cc7b4137..4e983961346e 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -64,8 +64,17 @@ struct nfs_parsed_mount_data { | |||
64 | }; | 64 | }; |
65 | 65 | ||
66 | /* mount_clnt.c */ | 66 | /* mount_clnt.c */ |
67 | extern int nfs_mount(struct sockaddr *, size_t, char *, char *, | 67 | struct nfs_mount_request { |
68 | int, int, struct nfs_fh *); | 68 | struct sockaddr *sap; |
69 | size_t salen; | ||
70 | char *hostname; | ||
71 | char *dirpath; | ||
72 | u32 version; | ||
73 | unsigned short protocol; | ||
74 | struct nfs_fh *fh; | ||
75 | }; | ||
76 | |||
77 | extern int nfs_mount(struct nfs_mount_request *info); | ||
69 | 78 | ||
70 | /* client.c */ | 79 | /* client.c */ |
71 | extern struct rpc_program nfs_program; | 80 | extern struct rpc_program nfs_program; |