summaryrefslogtreecommitdiffstats
path: root/drivers/md/md-bitmap.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2024-08-26 09:44:42 +0200
committerSong Liu <song@kernel.org>2024-08-27 21:43:14 +0200
commit3c9883e77a36ca76b8d92afa99599263ca587ae7 (patch)
treeb5c67bd9827e703d0eace206a82f66c5ecc784fe /drivers/md/md-bitmap.h
parentmd/md-bitmap: merge md_bitmap_unplug_async() into md_bitmap_unplug() (diff)
downloadlinux-3c9883e77a36ca76b8d92afa99599263ca587ae7.tar.xz
linux-3c9883e77a36ca76b8d92afa99599263ca587ae7.zip
md/md-bitmap: merge bitmap_unplug() 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-33-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md-bitmap.h b/drivers/md/md-bitmap.h
index ba8ba7e49ef9..dbe9b27091f4 100644
--- a/drivers/md/md-bitmap.h
+++ b/drivers/md/md-bitmap.h
@@ -254,6 +254,7 @@ struct bitmap_operations {
void (*write_all)(struct mddev *mddev);
void (*dirty_bits)(struct mddev *mddev, unsigned long s,
unsigned long e);
+ void (*unplug)(struct mddev *mddev, bool sync);
int (*startwrite)(struct mddev *mddev, sector_t offset,
unsigned long sectors, bool behind);
@@ -277,7 +278,6 @@ struct bitmap_operations {
void mddev_set_bitmap_ops(struct mddev *mddev);
/* these are exported */
-void md_bitmap_unplug(struct mddev *mddev, bool sync);
void md_bitmap_daemon_work(struct mddev *mddev);
int md_bitmap_resize(struct bitmap *bitmap, sector_t blocks,