diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 15:44:24 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-08-27 10:14:16 -0700 |
commit | e1e490805958617327be14eaf0ed31d71adc2c54 (patch) | |
tree | 5ac0b3e5f38efd4e59d93d545986dc0de3f3654d /drivers/md/dm-raid.c | |
parent | 04c80e649512f2c24f99052440cc808163eff40c (diff) | |
download | linux-e1e490805958617327be14eaf0ed31d71adc2c54.tar.gz linux-e1e490805958617327be14eaf0ed31d71adc2c54.tar.bz2 linux-e1e490805958617327be14eaf0ed31d71adc2c54.zip |
md/md-bitmap: merge md_bitmap_load() 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-15-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/dm-raid.c')
-rw-r--r-- | drivers/md/dm-raid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index 0c3323e0adb2..c3e201fde4c5 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -3949,7 +3949,9 @@ static int __load_dirty_region_bitmap(struct raid_set *rs) /* Try loading the bitmap unless "raid0", which does not have one */ if (!rs_is_raid0(rs) && !test_and_set_bit(RT_FLAG_RS_BITMAP_LOADED, &rs->runtime_flags)) { - r = md_bitmap_load(&rs->md); + struct mddev *mddev = &rs->md; + + r = mddev->bitmap_ops->load(mddev); if (r) DMERR("Failed to load bitmap"); } |