diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 09:44:24 +0200 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-08-27 19:14:16 +0200 |
commit | e1e490805958617327be14eaf0ed31d71adc2c54 (patch) | |
tree | 5ac0b3e5f38efd4e59d93d545986dc0de3f3654d /drivers/md/md-bitmap.h | |
parent | md/md-bitmap: merge md_bitmap_create() into bitmap_operations (diff) | |
download | linux-e1e490805958617327be14eaf0ed31d71adc2c54.tar.xz 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/md-bitmap.h')
-rw-r--r-- | drivers/md/md-bitmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md-bitmap.h b/drivers/md/md-bitmap.h index f4c4925102b6..f5b04b61d9e9 100644 --- a/drivers/md/md-bitmap.h +++ b/drivers/md/md-bitmap.h @@ -248,13 +248,13 @@ struct md_bitmap_stats { struct bitmap_operations { int (*create)(struct mddev *mddev, int slot); + int (*load)(struct mddev *mddev); }; /* the bitmap API */ void mddev_set_bitmap_ops(struct mddev *mddev); /* these are used only by md/bitmap */ -int md_bitmap_load(struct mddev *mddev); void md_bitmap_flush(struct mddev *mddev); void md_bitmap_destroy(struct mddev *mddev); |