diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-04-28 01:09:25 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-04-28 01:09:25 +0000 |
commit | b9ba7aeb165cffecdffb60aec8c3fa8d590d9ca9 (patch) | |
tree | 42d07b0c7246ae2536a702e7c5de9e2732341116 /fs/nfs/nfsroot.c | |
parent | 7406b0a326f2d70ade2671c37d1beef62249db97 (diff) |
Merge with 2.3.99-pre6.
Diffstat (limited to 'fs/nfs/nfsroot.c')
-rw-r--r-- | fs/nfs/nfsroot.c | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c index b632cf175..7c3a7a0cc 100644 --- a/fs/nfs/nfsroot.c +++ b/fs/nfs/nfsroot.c @@ -450,32 +450,16 @@ static int __init root_nfs_get_handle(void) return status; } - -/* - * Now actually mount the given directory. - */ -static int __init root_nfs_do_mount(struct super_block *sb) -{ - /* Pass the server address to NFS */ - set_sockaddr((struct sockaddr_in *) &nfs_data.addr, servaddr, nfs_port); - - /* Now (finally ;-)) read the super block for mounting */ - if (nfs_read_super(sb, &nfs_data, 1) == NULL) - return -1; - return 0; -} - - /* - * Get the NFS port numbers and file handle, and then read the super- - * block for mounting. + * Get the NFS port numbers and file handle, and return the prepared 'data' + * argument for ->read_super() if everything went OK. Return NULL otherwise. */ -int __init nfs_root_mount(struct super_block *sb) +void * __init nfs_root_data(void) { if (root_nfs_init() < 0 || root_nfs_ports() < 0 - || root_nfs_get_handle() < 0 - || root_nfs_do_mount(sb) < 0) - return -1; - return 0; + || root_nfs_get_handle() < 0) + return NULL; + set_sockaddr((struct sockaddr_in *) &nfs_data.addr, servaddr, nfs_port); + return (void*)&nfs_data; } |