]> www.infradead.org Git - users/hch/misc.git/commit
badblocks: try can_merge_front before overlap_front
authorLi Nan <linan122@huawei.com>
Thu, 27 Feb 2025 07:55:02 +0000 (15:55 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Mar 2025 15:03:28 +0000 (08:03 -0700)
commit3a23d05f9c1abf8238fe48167ab5574062d1606e
treec39115927dbd1f998291866cb4a455c8430c2bbd
parent37446680dfbfbba7cbedd680047182f70a0b857b
badblocks: try can_merge_front before overlap_front

Regardless of whether overlap_front() returns true or false,
can_merge_front() will be executed first. Therefore, move
can_merge_front() in front of can_merge_front() to simplify code.

Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20250227075507.151331-8-zhengqixing@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/badblocks.c