diff options
author | Benjamin Coddington <bcodding@redhat.com> | 2019-02-06 14:09:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 16:35:12 +0300 |
commit | fc4b12f3cad776dff7d56d9f08a96589859feac5 (patch) | |
tree | 1e1f7cbebe034e709f21ac1b4166253e9de03486 /mm | |
parent | 86e74ca9fd0dae23fd55bb4ce577adfd98ff75e8 (diff) | |
download | linux-fc4b12f3cad776dff7d56d9f08a96589859feac5.tar.xz |
NFS: Don't use page_file_mapping after removing the page
[ Upstream commit d2ceb7e57086750ea6198a31fd942d98099a0786 ]
If nfs_page_async_flush() removes the page from the mapping, then we can't
use page_file_mapping() on it as nfs_updatepate() is wont to do when
receiving an error. Instead, push the mapping to the stack before the page
is possibly truncated.
Fixes: 8fc75bed96bb ("NFS: Fix up return value on fatal errors in nfs_page_async_flush()")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions