diff options
author | 2024-08-26 15:44:46 +0800 | |
---|---|---|
committer | 2024-08-27 12:43:15 -0700 | |
commit | 57d602414d2e327160f2e03c39eff3f2f895839c (patch) | |
tree | 98595a2b9140854bc2dbc4dee937af0a11f9c81b /drivers/md/md-cluster.c | |
parent | md/md-bitmap: merge md_bitmap_resize() into bitmap_operations (diff) | |
download | wireguard-linux-57d602414d2e327160f2e03c39eff3f2f895839c.tar.xz wireguard-linux-57d602414d2e327160f2e03c39eff3f2f895839c.zip |
md/md-bitmap: merge get_bitmap_from_slot() into bitmap_operations
So that the implementation won't be exposed, and it'll be possible
to invent a new bitmap by replacing bitmap_operations.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240826074452.1490072-37-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/md/md-cluster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 21cf0f38cbf8..81c630dcf9ea 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c @@ -1169,7 +1169,7 @@ static int resize_bitmaps(struct mddev *mddev, sector_t newsize, sector_t oldsiz if (i == md_cluster_ops->slot_number(mddev)) continue; - bitmap = get_bitmap_from_slot(mddev, i); + bitmap = mddev->bitmap_ops->get_from_slot(mddev, i); if (IS_ERR(bitmap)) { pr_err("can't get bitmap from slot %d\n", i); bitmap = NULL; @@ -1236,7 +1236,7 @@ static int cluster_check_sync_size(struct mddev *mddev) if (i == current_slot) continue; - bitmap = get_bitmap_from_slot(mddev, i); + bitmap = mddev->bitmap_ops->get_from_slot(mddev, i); if (IS_ERR(bitmap)) { pr_err("can't get bitmap from slot %d\n", i); return -1; |