On Oct 25, 2007, at 12:59 PM, Trond Myklebust wrote:
Could you please try the following patch?
Cheers
Trond
--------------------------------- CUT HERE -----------------------------
From: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
Date: Thu, 25 Oct 2007 13:56:10 -0400
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@xxxxxxxxxx>
---
fs/nfs/getroot.c | 81 +++++++++++++++++ +------------------------------------
1 files changed, 27 insertions(+), 54 deletions(-)
Any reason not to send this to Linus as a bug fix for 2.6.24 (and possibly stable)?