]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 17 Feb 2020 11:36:59 +0000 (12:36 +0100)
commit3b7e3bceaaef95d06fa649f2b097c00d08eef913
tree6722da0be38165bf14d324d73ac54f1a2fbd7463
parent5e7bb64521f1c81fc51b42405349558c6bca4595
NFS: Revalidate the file size on a fatal write error

BugLink: https://bugs.launchpad.net/bugs/1863589
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/nfs/write.c