Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 223db122 authored by Steve Dickson's avatar Steve Dickson Committed by Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent b3c6aeb3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);