On Thu, Aug 05, 2021 at 02:31:54PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > Modern-day mapping_set_error has the ability to squash the usual > negative error code into something appropriate for long-term storage in > a struct address_space -- ENOSPC becomes AS_ENOSPC, and everything else > becomes EIO. iomap squashes /everything/ to EIO, just as XFS did before > that, but this doesn't make sense. > > Fix this by making it so that we can pass ENOSPC to userspace when > writeback fails due to space problems. > > Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> I could have sworn I sent this patch in earlier. Anyway, Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>