mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 12:20:52 +07:00
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>
This commit is contained in:
parent
b3c6aeb3ce
commit
223db122bf
@ -2066,6 +2066,7 @@ static struct inode *nfs_alloc_inode(struct super_block *sb)
|
|||||||
return NULL;
|
return NULL;
|
||||||
nfsi->flags = 0UL;
|
nfsi->flags = 0UL;
|
||||||
nfsi->cache_validity = 0UL;
|
nfsi->cache_validity = 0UL;
|
||||||
|
nfsi->cache_change_attribute = jiffies;
|
||||||
#ifdef CONFIG_NFS_V3_ACL
|
#ifdef CONFIG_NFS_V3_ACL
|
||||||
nfsi->acl_access = ERR_PTR(-EAGAIN);
|
nfsi->acl_access = ERR_PTR(-EAGAIN);
|
||||||
nfsi->acl_default = ERR_PTR(-EAGAIN);
|
nfsi->acl_default = ERR_PTR(-EAGAIN);
|
||||||
|
Loading…
Reference in New Issue
Block a user