aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2005-11-30 09:25:33 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-12-03 15:20:03 -0500
commit223db122bfccd463751d8b0c09a638abee03681d (patch)
tree3fc2e3112f80d94abf0c36586392c7ce43d5a4e8 /fs/nfs
parentb3c6aeb3ce26b286769d2deafec47d218c83dd09 (diff)
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 <steved@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index aaab1a5ac461..b551b19aa6e7 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)
2066 return NULL; 2066 return NULL;
2067 nfsi->flags = 0UL; 2067 nfsi->flags = 0UL;
2068 nfsi->cache_validity = 0UL; 2068 nfsi->cache_validity = 0UL;
2069 nfsi->cache_change_attribute = jiffies;
2069#ifdef CONFIG_NFS_V3_ACL 2070#ifdef CONFIG_NFS_V3_ACL
2070 nfsi->acl_access = ERR_PTR(-EAGAIN); 2071 nfsi->acl_access = ERR_PTR(-EAGAIN);
2071 nfsi->acl_default = ERR_PTR(-EAGAIN); 2072 nfsi->acl_default = ERR_PTR(-EAGAIN);