]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: consider discard merge last
authorKeith Busch <kbusch@kernel.org>
Fri, 14 Nov 2025 18:31:45 +0000 (10:31 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Nov 2025 16:39:36 +0000 (09:39 -0700)
commit2516c246d01c23a5f5310e9ac78d9f8aad9b1d0e
tree29dccf7ad42938f0f72783c352e196a73d733db0
parent82d20481024cbae2ea87fe8b86d12961bfda7169
block: consider discard merge last

If the next discard range is contiguous with the current range being
considered, it's cheaper to expand the current range than to append an
additional bio.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c