Skip to content
Commit cbeaf951 authored by Jeff Layton's avatar Jeff Layton
Browse files

mm: clear AS_EIO/AS_ENOSPC when writeback initiation fails



filemap_write_and_wait{_range} will return an error if writeback
initiation fails, but won't clear errors in the address_space. This is
particularly problematic on DAX, as filemap_fdatawrite* is
effectively synchronous there. Ensure that we clear the AS_EIO/AS_ENOSPC
flags when filemap_fdatawrite* returns an error.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
parent 76341cab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment