summaryrefslogtreecommitdiff
path: root/drivers/md/md-bitmap.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2024-08-26 15:44:40 +0800
committerSong Liu <song@kernel.org>2024-08-27 12:43:14 -0700
commit4338b94271dd8cee8ce3b662b12528cd009325a3 (patch)
tree0e35f1ea77f95bd42eaba31b39ef780006390857 /drivers/md/md-bitmap.h
parent15db1eca63bd954997058edc1563223d7b525003 (diff)
downloadlinux-4338b94271dd8cee8ce3b662b12528cd009325a3.tar.gz
linux-4338b94271dd8cee8ce3b662b12528cd009325a3.tar.bz2
linux-4338b94271dd8cee8ce3b662b12528cd009325a3.zip
md/md-bitmap: merge md_bitmap_sync_with_cluster() 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-31-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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/md-bitmap.h b/drivers/md/md-bitmap.h
index 027de097f96a..0953ac73735c 100644
--- a/drivers/md/md-bitmap.h
+++ b/drivers/md/md-bitmap.h
@@ -267,16 +267,16 @@ struct bitmap_operations {
void (*update_sb)(struct bitmap *bitmap);
int (*get_stats)(struct bitmap *bitmap, struct md_bitmap_stats *stats);
+
+ void (*sync_with_cluster)(struct mddev *mddev,
+ sector_t old_lo, sector_t old_hi,
+ sector_t new_lo, sector_t new_hi);
};
/* the bitmap API */
void mddev_set_bitmap_ops(struct mddev *mddev);
/* these are exported */
-void md_bitmap_sync_with_cluster(struct mddev *mddev,
- sector_t old_lo, sector_t old_hi,
- sector_t new_lo, sector_t new_hi);
-
void md_bitmap_unplug(struct bitmap *bitmap);
void md_bitmap_unplug_async(struct bitmap *bitmap);
void md_bitmap_daemon_work(struct mddev *mddev);