commit | 37e51a7640c275999ea0c35410c42e6d896ff7fa | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@redhat.com> | Wed Jul 05 15:17:19 2017 -0400 |
committer | Jeff Layton <jlayton@redhat.com> | Wed Jul 05 18:44:22 2017 -0400 |
tree | 15188bac299755b313c6881d6d6793d0fdaab611 | |
parent | 11ab83190828cb7b2cbb26467f2eecf74f0214c3 [diff] |
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>