]> git.baikalelectronics.ru Git - kernel.git/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)
commit2ed9a14f14fb72b0c9a056ac2d86ad3cc500fa56
treeed90c600222d35834b045e8a72336621d36f0b2e
parentd449047ea7b2b6076edca7bc91451f01ea179947
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