On Wed, Mar 08, 2017 at 11:29:30AM -0500, Jeff Layton wrote: > In order to get proper error codes from fsync, we must set an error in > the mapping range when writeback fails. > > Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> Yep, paired with the changes to filmap_write_and_wait() and filemap_write_and_wait_range(), this seems fine. Reviewed-by: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>