NFS: Always clear an invalid mapping when attempting a buffered write
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 8 Feb 2021 13:55:47 +0000 (08:55 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Feb 2021 16:41:38 +0000 (11:41 -0500)
commit28aa2f9e73e762dbaa28fdca20cccb59c74cc139
tree0ed72e31ad417df995a53c6b584f01e03a8ad7f6
parentfc9dc401899ab280fe1849a0ca5800384726a793
NFS: Always clear an invalid mapping when attempting a buffered write

If the page cache is invalid, then we can't do read-modify-write, so
ensure that we do clear it when we know it is invalid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/file.c
fs/nfs/inode.c
include/linux/nfs_fs.h