]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Undo broken FH conversion that broke nfsroot compile
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Tue, 24 Aug 2004 05:28:55 +0000 (22:28 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 05:28:55 +0000 (22:28 -0700)
That conversion to nfs_fh_copy() is bogus since we're not copying into
an nfs_fh anyway. Just revert it.

fs/nfs/nfsroot.c

index fe679026da7dbf4d7b9f5c8725a1e2d332ae48e5..86461591686259894e7e38cd1ff8f8b2e054c69e 100644 (file)
@@ -495,8 +495,10 @@ static int __init root_nfs_get_handle(void)
        if (status < 0)
                printk(KERN_ERR "Root-NFS: Server returned error %d "
                                "while mounting %s\n", status, nfs_path);
-       else
-               nfs_copy_fh(nfs_data.root, fh);
+       else {
+               nfs_data.root.size = fh.size;
+               memcpy(nfs_data.root.data, fh.data, fh.size);
+       }
 
        return status;
 }