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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:34:10 +0000 (16:34 -0500)
commit1ef47a06d2d4b7b16e5ef0f18754040da50f1f36
tree2db39d4b5ba4790e522c14a7c0c15163c15864b8
parentb7560b5b72a2f537f8e1fb17a5021cfee089b247
NFS: Revalidate the file size on a fatal write error

commit 0df68ced55443243951d02cc497be31fadf28173 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/write.c