--- IO-AIO/AIO.xs 2020/02/26 15:49:25 1.282 +++ IO-AIO/AIO.xs 2020/09/03 17:20:45 1.283 @@ -346,7 +346,7 @@ req->flags |= EIO_FLAG_PTR1_FREE; /* heuristic: start with 512 bytes (8 extents), and if that isn't enough, */ - /* increase in 3.5kb steps */ + /* increase in fixed steps */ if (count < 0) count = 8; @@ -409,11 +409,11 @@ { struct fiemap_extent *e = incmap->fm_extents + count; + fiemap->fm_extents [fiemap->fm_mapped_extents++] = *e; + if (e->fe_logical + e->fe_length >= end_offset) goto done; - fiemap->fm_extents [fiemap->fm_mapped_extents++] = *e; - if (e->fe_flags & FIEMAP_EXTENT_LAST) goto done;