md/md-bitmap: handle the case bitmap is not enabled before end_sync()
authorYu Kuai <yukuai3@huawei.com>
Mon, 7 Jul 2025 01:27:04 +0000 (09:27 +0800)
committerYu Kuai <yukuai3@huawei.com>
Sat, 6 Sep 2025 09:11:54 +0000 (17:11 +0800)
commitbb74b093c33cf20876e23ad8aa0d206b537ccb69
treedaea36e9ef834c05231cef937f3e896843b53f56
parent5ae58d1500e3fc16df3267fad810955c949afdb2
md/md-bitmap: handle the case bitmap is not enabled before end_sync()

This case can be handled without knowing internal implementation.

Prepare to introduce CONFIG_MD_BITMAP.

Link: https://lore.kernel.org/linux-raid/20250707012711.376844-9-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Xiao Ni <xni@redhat.com>
drivers/md/md-bitmap.c
drivers/md/md-bitmap.h
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c