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 <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240826074452.1490072-36-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
This commit is contained in:
Yu Kuai
2024-08-26 15:44:45 +08:00
committed by Song Liu
parent e1791dae6c
commit 77c09640ee
7 changed files with 18 additions and 15 deletions

View File

@@ -8323,7 +8323,7 @@ static int raid5_resize(struct mddev *mddev, sector_t sectors)
mddev->array_sectors > newsize)
return -EINVAL;
ret = md_bitmap_resize(mddev, sectors, 0, false);
ret = mddev->bitmap_ops->resize(mddev, sectors, 0, false);
if (ret)
return ret;