]> git.baikalelectronics.ru Git - 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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:32 +0000 (10:54 -0500)
commit30787062c6cb9916576a211e184f7fbfcdf8e0d9
tree8a893c208d8ae8f51e24fae0d128cd4cd35fd687
parent4cd4be96d06322235f7a16475008dda7cbc0eeaf
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: 7f33eb69e69b ("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