projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f0e7d0
)
md: add a new callback pers->bitmap_sector()
author
Yu Kuai
<yukuai3@huawei.com>
Thu, 9 Jan 2025 01:51:43 +0000
(09:51 +0800)
committer
Song Liu
<song@kernel.org>
Mon, 13 Jan 2025 16:56:11 +0000
(08:56 -0800)
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>
drivers/md/md.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.h
b/drivers/md/md.h
index 4ba93af36126dddc71575ebb3e80cbba8ca2dbcd..de6dadb9a40b064b324ff80e9dc93856d9fc0ceb 100644
(file)
--- 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 {