]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfs/nfsroot.c
NFS: Remake nfsroot_mount as a permanent part of NFS client
[karo-tx-linux.git] / fs / nfs / nfsroot.c
index f0db4703b1c9ed2136c1a14b0bacf2ea553a97b1..3490322d11459f0023bc60d56da1bddc0c06b9c5 100644 (file)
@@ -496,7 +496,8 @@ static int __init root_nfs_get_handle(void)
                                        NFS_MNT3_VERSION : NFS_MNT_VERSION;
 
        set_sockaddr(&sin, servaddr, htons(mount_port));
-       status = nfsroot_mount(&sin, nfs_path, &fh, version, protocol);
+       status = nfs_mount((struct sockaddr *) &sin, sizeof(sin), NULL,
+                          nfs_path, version, protocol, &fh);
        if (status < 0)
                printk(KERN_ERR "Root-NFS: Server returned error %d "
                                "while mounting %s\n", status, nfs_path);