diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 15:44:31 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-08-27 10:14:16 -0700 |
commit | b26313cb96f1b3fd6f07d3243f6cd426c5cbaf39 (patch) | |
tree | 37a0acad4c6bc56cb661eac395b9b907886b0d43 /drivers/md/md.c | |
parent | ea076ceb35d66d29fc0a50c15a4b0248c5122d2c (diff) |
md/md-bitmap: merge bitmap_write_all() 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 <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240826074452.1490072-22-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 6c184748f317..1dc800113b7b 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -9544,7 +9544,7 @@ static void md_start_sync(struct work_struct *ws) * stored on all devices. So make sure all bitmap pages get written. */ if (spares) - md_bitmap_write_all(mddev->bitmap); + mddev->bitmap_ops->write_all(mddev); name = test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) ? "reshape" : "resync"; |