aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md-cluster.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2024-08-26 07:44:45 +0000
committerSong Liu <[email protected]>2024-08-27 19:43:15 +0000
commit77c09640eea56dbfed069ac67b1cd79397d41be8 (patch)
tree34997c22e09c8d4837339fd95eb1df162ef6cb27 /drivers/md/md-cluster.c
parentmd/md-bitmap: pass in mddev directly for md_bitmap_resize() (diff)
downloadkernel-77c09640eea56dbfed069ac67b1cd79397d41be8.tar.gz
kernel-77c09640eea56dbfed069ac67b1cd79397d41be8.zip
md/md-bitmap: merge md_bitmap_resize() 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'drivers/md/md-cluster.c')
-rw-r--r--drivers/md/md-cluster.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c
index a7e5ead71c2f..21cf0f38cbf8 100644
--- a/drivers/md/md-cluster.c
+++ b/drivers/md/md-cluster.c
@@ -628,8 +628,9 @@ static int process_recvd_msg(struct mddev *mddev, struct cluster_msg *msg)
break;
case BITMAP_RESIZE:
if (le64_to_cpu(msg->high) != mddev->pers->size(mddev, 0, 0))
- ret = md_bitmap_resize(mddev, le64_to_cpu(msg->high), 0,
- false);
+ ret = mddev->bitmap_ops->resize(mddev,
+ le64_to_cpu(msg->high),
+ 0, false);
break;
default:
ret = -1;