]> err.no Git - linux-2.6/commit
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)
commitb09b9417d074e01a4e4ab5c19358f1b3dc76c1b2
treeed90c600222d35834b045e8a72336621d36f0b2e
parent2ffbb8377c7a0713baf6644e285adc27a5654582
NFS: Fix the ustat() regression

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>
fs/nfs/getroot.c