diff options
| author | Yu Kuai <[email protected]> | 2024-08-26 07:44:23 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2024-08-27 17:14:15 +0000 |
| commit | 04c80e649512f2c24f99052440cc808163eff40c (patch) | |
| tree | 499fbd96156f85c3844f1da2cabfebb30866039b /drivers/md/md-bitmap.h | |
| parent | md/md-bitmap: simplify md_bitmap_create() + md_bitmap_load() (diff) | |
| download | kernel-04c80e649512f2c24f99052440cc808163eff40c.tar.gz kernel-04c80e649512f2c24f99052440cc808163eff40c.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Song Liu <[email protected]>
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); |
