diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 10:44:23 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-08-27 20:14:15 +0300 |
commit | 04c80e649512f2c24f99052440cc808163eff40c (patch) | |
tree | 499fbd96156f85c3844f1da2cabfebb30866039b /drivers/md/md-bitmap.h | |
parent | 7545d385ec7e4c0d5e86e7cde4fe3fb8f4555fb9 (diff) | |
download | linux-04c80e649512f2c24f99052440cc808163eff40c.tar.xz |
md/md-bitmap: merge md_bitmap_create() 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-14-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 d66f447f4be6..f4c4925102b6 100644 --- a/drivers/md/md-bitmap.h +++ b/drivers/md/md-bitmap.h @@ -247,13 +247,13 @@ struct md_bitmap_stats { }; struct bitmap_operations { + int (*create)(struct mddev *mddev, int slot); }; /* the bitmap API */ void mddev_set_bitmap_ops(struct mddev *mddev); /* these are used only by md/bitmap */ -int md_bitmap_create(struct mddev *mddev, int slot); int md_bitmap_load(struct mddev *mddev); void md_bitmap_flush(struct mddev *mddev); void md_bitmap_destroy(struct mddev *mddev); |