From: Steve Dickson Date: Wed, 30 Nov 2005 14:25:33 +0000 (-0500) Subject: NFS: Fix cache consistency regression X-Git-Tag: v2.6.15-rc5~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=223db122bfccd463751d8b0c09a638abee03681d;p=linux-2.6-omap-h63xx.git NFS: Fix cache consistency regression Make sure cache_change_attribute is initialized to jiffies so when the mtime changes on directory, the directory will be refreshed. Signed-off by: Steve Dickson Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index aaab1a5ac46..b551b19aa6e 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -2066,6 +2066,7 @@ static struct inode *nfs_alloc_inode(struct super_block *sb) return NULL; nfsi->flags = 0UL; nfsi->cache_validity = 0UL; + nfsi->cache_change_attribute = jiffies; #ifdef CONFIG_NFS_V3_ACL nfsi->acl_access = ERR_PTR(-EAGAIN); nfsi->acl_default = ERR_PTR(-EAGAIN);