summaryrefslogtreecommitdiffstats
path: root/fs/sync.c
diff options
context:
space:
mode:
authorJeff Layton2017-07-05 21:17:19 +0200
committerJeff Layton2017-07-06 00:44:22 +0200
commit37e51a7640c275999ea0c35410c42e6d896ff7fa (patch)
tree15188bac299755b313c6881d6d6793d0fdaab611 /fs/sync.c
parentJFS: do not ignore return code from write_one_page() (diff)
downloadkernel-qcow2-linux-37e51a7640c275999ea0c35410c42e6d896ff7fa.tar.gz
kernel-qcow2-linux-37e51a7640c275999ea0c35410c42e6d896ff7fa.tar.xz
kernel-qcow2-linux-37e51a7640c275999ea0c35410c42e6d896ff7fa.zip
mm: clean up error handling in write_one_page
Don't try to check PageError since that's potentially racy and not necessarily going to be set after writepage errors out. Instead, check the mapping for an error after writepage returns. That should also help us detect errors that occurred if the VM tried to clean the page earlier due to memory pressure. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/sync.c')
0 files changed, 0 insertions, 0 deletions