aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid.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/dm-raid.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/dm-raid.c')
-rw-r--r--drivers/md/dm-raid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index cc071fcd7a04..63682d27fc8d 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -4068,7 +4068,8 @@ static int raid_preresume(struct dm_target *ti)
mddev->bitmap_info.chunksize != to_bytes(rs->requested_bitmap_chunk_sectors)))) {
int chunksize = to_bytes(rs->requested_bitmap_chunk_sectors) ?: mddev->bitmap_info.chunksize;
- r = md_bitmap_resize(mddev, mddev->dev_sectors, chunksize, false);
+ r = mddev->bitmap_ops->resize(mddev, mddev->dev_sectors,
+ chunksize, false);
if (r)
DMERR("Failed to resize bitmap");
}