On Sun, Nov 17, 2019 at 10:35:21AM -0800, Darrick J. Wong wrote: > On Sat, Nov 16, 2019 at 07:22:07PM +0100, Christoph Hellwig wrote: > > Use a flags argument with the XFS_DABUF_MAP_HOLE_OK flag to signal that > > a hole is okay and not corruption, and return -ENOENT instead of the > > nameless -1 to signal that case in the return value. > > Why not set *nirecs = 0 and return 0 like we sometimes do for bmap > lookups? Sure, I can change it to that for the next version.