aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2024-08-26 07:44:38 +0000
committerSong Liu <[email protected]>2024-08-27 17:14:17 +0000
commit077b18abde12f27da9776563413bbad4918ecb52 (patch)
tree34ed83a3149b5c3fcb617e9d40b0eeb69670e8c5 /drivers/md/raid1.c
parentmd/md-bitmap: merge md_bitmap_end_sync() into bitmap_operations (diff)
downloadkernel-077b18abde12f27da9776563413bbad4918ecb52.tar.gz
kernel-077b18abde12f27da9776563413bbad4918ecb52.zip
md/md-bitmap: merge md_bitmap_close_sync() 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. Also change the parameter from bitmap to mddev, to avoid access bitmap outside md-bitmap.c as much as possible. 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/raid1.c')
-rw-r--r--drivers/md/raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index b50ba8074281..a6757c9a2894 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -2777,7 +2777,7 @@ static sector_t raid1_sync_request(struct mddev *mddev, sector_t sector_nr,
else /* completed sync */
conf->fullsync = 0;
- md_bitmap_close_sync(mddev->bitmap);
+ mddev->bitmap_ops->close_sync(mddev);
close_sync(conf);
if (mddev_is_clustered(mddev)) {