NFS: Fix inode fileid checks in attribute revalidation code
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 28 Aug 2019 15:26:13 +0000 (11:26 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 2 Sep 2019 17:10:19 +0000 (13:10 -0400)
commiteb3d8f42231aec65b64b079dd17bd6c008a3fe29
tree13ec7187d0b1bdc3c01ed59af91528b434ce9b13
parent089cf7f6ecb266b6a4164919a2e69bd2f938374a
NFS: Fix inode fileid checks in attribute revalidation code

We want to throw out the attrbute if it refers to the mounted on fileid,
and not the real fileid. However we do not want to block cache consistency
updates from NFSv4 writes.

Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Fixes: 7e10cc25bfa0 ("NFS: Don't refresh attributes with mounted-on-file...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c