Skip to content

Commit 0c984a2

Browse files
YuKuai-huaweiliu-song-6
authored andcommitted
md: add a new callback pers->bitmap_sector()
This callback will be used in raid5 to convert io ranges from array to bitmap. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Xiao Ni <xni@redhat.com> Link: https://lore.kernel.org/r/20250109015145.158868-4-yukuai1@huaweicloud.com Signed-off-by: Song Liu <song@kernel.org>
1 parent 4f0e7d0 commit 0c984a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/md/md.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,9 @@ struct md_personality
746746
void *(*takeover) (struct mddev *mddev);
747747
/* Changes the consistency policy of an active array. */
748748
int (*change_consistency_policy)(struct mddev *mddev, const char *buf);
749+
/* convert io ranges from array to bitmap */
750+
void (*bitmap_sector)(struct mddev *mddev, sector_t *offset,
751+
unsigned long *sectors);
749752
};
750753

751754
struct md_sysfs_entry {

0 commit comments

Comments
 (0)