diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2010-09-17 10:54:37 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-09-17 10:54:37 -0400 |
commit | 56463e50d1fc3f070492434cea6303b35ea000de (patch) | |
tree | 889f492ebe064c0f7b2b9bb759c13767b4d234d1 /include/linux/nfs_fs.h | |
parent | 60ac03685bf513f9d9b6e8e098018b35309ed326 (diff) |
NFS: Use super.c for NFSROOT mount option parsing
Replace duplicate code in NFSROOT for mounting an NFS server on '/'
with logic that uses the existing mainline text-based logic in the NFS
client.
Add documenting comments where appropriate.
Note that this means NFSROOT mounts now use the same default settings
as v2/v3 mounts done via mount(2) from user space.
vers=3,tcp,rsize=<negotiated default>,wsize=<negotiated default>
As before, however, no version/protocol negotiation with the server is
done.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 508f8cf6da37..2a18f1582fa4 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -364,6 +364,7 @@ extern struct nfs_lock_context *nfs_get_lock_context(struct nfs_open_context *ct | |||
364 | extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx); | 364 | extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx); |
365 | extern u64 nfs_compat_user_ino64(u64 fileid); | 365 | extern u64 nfs_compat_user_ino64(u64 fileid); |
366 | extern void nfs_fattr_init(struct nfs_fattr *fattr); | 366 | extern void nfs_fattr_init(struct nfs_fattr *fattr); |
367 | extern unsigned long nfs_inc_attr_generation_counter(void); | ||
367 | 368 | ||
368 | extern struct nfs_fattr *nfs_alloc_fattr(void); | 369 | extern struct nfs_fattr *nfs_alloc_fattr(void); |
369 | 370 | ||
@@ -379,9 +380,12 @@ static inline void nfs_free_fhandle(const struct nfs_fh *fh) | |||
379 | kfree(fh); | 380 | kfree(fh); |
380 | } | 381 | } |
381 | 382 | ||
383 | /* | ||
384 | * linux/fs/nfs/nfsroot.c | ||
385 | */ | ||
386 | extern int nfs_root_data(char **root_device, char **root_data); /*__init*/ | ||
382 | /* linux/net/ipv4/ipconfig.c: trims ip addr off front of name, too. */ | 387 | /* linux/net/ipv4/ipconfig.c: trims ip addr off front of name, too. */ |
383 | extern __be32 root_nfs_parse_addr(char *name); /*__init*/ | 388 | extern __be32 root_nfs_parse_addr(char *name); /*__init*/ |
384 | extern unsigned long nfs_inc_attr_generation_counter(void); | ||
385 | 389 | ||
386 | /* | 390 | /* |
387 | * linux/fs/nfs/file.c | 391 | * linux/fs/nfs/file.c |
@@ -584,10 +588,6 @@ nfs_fileid_to_ino_t(u64 fileid) | |||
584 | return ino; | 588 | return ino; |
585 | } | 589 | } |
586 | 590 | ||
587 | /* NFS root */ | ||
588 | |||
589 | extern void * nfs_root_data(void); | ||
590 | |||
591 | #define nfs_wait_event(clnt, wq, condition) \ | 591 | #define nfs_wait_event(clnt, wq, condition) \ |
592 | ({ \ | 592 | ({ \ |
593 | int __retval = wait_event_killable(wq, condition); \ | 593 | int __retval = wait_event_killable(wq, condition); \ |