NFS: Revalidate the file size on a fatal write error
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 20:25:00 +0000 (15:25 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:32 +0000 (10:54 -0500)
commit0df68ced55443243951d02cc497be31fadf28173
tree8a893c208d8ae8f51e24fae0d128cd4cd35fd687
parente515dd9d76d22446b67f1568e3fc39ec84635360
NFS: Revalidate the file size on a fatal write error

If we suffer a fatal error upon writing a file, which causes us to
need to revalidate the entire mapping, then we should also revalidate
the file size.

Fixes: d2ceb7e57086 ("NFS: Don't use page_file_mapping after removing the page")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/write.c