[Cluster-devel] [PATCH 2/2] iomap: fall back to buffered writes for invalidation failures
Christoph Hellwig
hch at lst.de
Tue Jul 14 11:00:55 UTC 2020
On Mon, Jul 13, 2020 at 08:39:20AM -0700, Darrick J. Wong wrote:
> -ENOTBLK is already being used as a "magic" return code that means
> "retry this direct write as a buffered write". Shouldn't we use that
> instead?
>
> -EREMCHG was a private hack we put in XFS for the one case where a
> direct write had to be done through the page cache (non block-aligned
> COW), but maybe it's time we put that to rest since the rest of the
> world apparently thinks the magic fallback code is -ENOTBLK.
Sure, I can switch the error code.
More information about the Cluster-devel
mailing list