Skip to content

Commit 7fe63ea

Browse files
committed
md: add a new callback pers->bitmap_sector()
JIRA: https://issues.redhat.com/browse/RHEL-73514 commit 0c984a2 Author: Yu Kuai <yukuai3@huawei.com> Date: Thu Jan 9 09:51:43 2025 +0800 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> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
1 parent c8fa244 commit 7fe63ea

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)