NFS: Fix the ustat() regression
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 25 Oct 2007 17:56:10 +0000 (13:56 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 17 Nov 2007 18:08:44 +0000 (13:08 -0500)
Since 2.6.18, the superblock sb->s_root has been a dummy dentry with a
dummy inode. This breaks ustat(), which actually uses sb->s_root in a
vfstat() call.

Fix this by making the s_root a dummy alias to the directory inode that was
used when creating the superblock.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

No differences found