diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 15:44:29 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-08-27 10:14:16 -0700 |
commit | 696936838bc18a761ed778910975d51cf2c35e3a (patch) | |
tree | 96c4b334fe60a7b812bf5a211e818cd966d7e5a2 /drivers/md/md-bitmap.h | |
parent | fe59b34676b4ec6b48a7b436d3422fc9317e047a (diff) | |
download | linux-696936838bc18a761ed778910975d51cf2c35e3a.tar.gz linux-696936838bc18a761ed778910975d51cf2c35e3a.tar.bz2 linux-696936838bc18a761ed778910975d51cf2c35e3a.zip |
md/md-bitmap: merge md_bitmap_status() 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-20-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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md-bitmap.h b/drivers/md/md-bitmap.h index ca0d8696136f..1df238cb82f0 100644 --- a/drivers/md/md-bitmap.h +++ b/drivers/md/md-bitmap.h @@ -253,6 +253,7 @@ struct bitmap_operations { void (*flush)(struct mddev *mddev); void (*update_sb)(struct bitmap *bitmap); + int (*get_stats)(struct bitmap *bitmap, struct md_bitmap_stats *stats); }; /* the bitmap API */ @@ -260,8 +261,6 @@ void mddev_set_bitmap_ops(struct mddev *mddev); /* these are used only by md/bitmap */ -int md_bitmap_get_stats(struct bitmap *bitmap, struct md_bitmap_stats *stats); - int md_bitmap_setallbits(struct bitmap *bitmap); void md_bitmap_write_all(struct bitmap *bitmap); |