]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
md/raid5: implement pers->bitmap_sector()
authorYu Kuai <yukuai3@huawei.com>
Thu, 9 Jan 2025 01:51:44 +0000 (09:51 +0800)
committerSong Liu <song@kernel.org>
Mon, 13 Jan 2025 16:56:11 +0000 (08:56 -0800)
commit9c89f604476cf15c31fbbdb043cff7fbf1dbe0cb
treec23c8d75a76c394a4f96c6e5f62881e984c2e42c
parent0c984a283a3ea3f10bebecd6c57c1d41b2e4f518
md/raid5: implement pers->bitmap_sector()

Bitmap is used for the whole array for raid1/raid10, hence IO for the
array can be used directly for bitmap. However, bitmap is used for
underlying disks for raid5, hence IO for the array can't be used
directly for bitmap.

Implement pers->bitmap_sector() for raid5 to convert IO ranges from the
array to the underlying disks.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20250109015145.158868-5-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5.c