diff options
author | Yu Kuai <yukuai3@huawei.com> | 2025-01-09 09:51:43 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2025-01-13 08:56:11 -0800 |
commit | 0c984a283a3ea3f10bebecd6c57c1d41b2e4f518 (patch) | |
tree | 1a25b669fc965708c0c35297e21d534a7482ec7a /drivers/md | |
parent | 4f0e7d0e03b7b80af84759a9e7cfb0f81ac4adae (diff) |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 4ba93af36126..de6dadb9a40b 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -746,6 +746,9 @@ struct md_personality void *(*takeover) (struct mddev *mddev); /* Changes the consistency policy of an active array. */ int (*change_consistency_policy)(struct mddev *mddev, const char *buf); + /* convert io ranges from array to bitmap */ + void (*bitmap_sector)(struct mddev *mddev, sector_t *offset, + unsigned long *sectors); }; struct md_sysfs_entry { |