]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
md/md-bitmap: make md_bitmap_print_sb() internal
authorYu Kuai <yukuai3@huawei.com>
Mon, 26 Aug 2024 07:44:27 +0000 (15:44 +0800)
committerSong Liu <song@kernel.org>
Tue, 27 Aug 2024 17:14:16 +0000 (10:14 -0700)
md_bitmap_print_sb() is only used inside md-bitmap.c, hence make it
static, also rename it to bitmap_print_sb.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240826074452.1490072-18-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/md-bitmap.c
drivers/md/md-bitmap.h

index 0035162fe6f382d3bf1d3b8c26d52f9e87efe592..86444cbee56e15b7c1eb0195a202437de198f026 100644 (file)
@@ -512,8 +512,7 @@ void md_bitmap_update_sb(struct bitmap *bitmap)
 }
 EXPORT_SYMBOL(md_bitmap_update_sb);
 
-/* print out the bitmap file superblock */
-void md_bitmap_print_sb(struct bitmap *bitmap)
+static void bitmap_print_sb(struct bitmap *bitmap)
 {
        bitmap_super_t *sb;
 
@@ -760,7 +759,7 @@ out_no_sb:
                        bitmap->mddev->bitmap_info.space > sectors_reserved)
                        bitmap->mddev->bitmap_info.space = sectors_reserved;
        } else {
-               md_bitmap_print_sb(bitmap);
+               bitmap_print_sb(bitmap);
                if (bitmap->cluster_slot < 0)
                        md_cluster_stop(bitmap->mddev);
        }
index c0858665554ef26bf96406fa81d6bf19c38f4202..5d5811c89b77119e51c3c6bb9a8ba75bdd7e933a 100644 (file)
@@ -258,7 +258,6 @@ void mddev_set_bitmap_ops(struct mddev *mddev);
 
 /* these are used only by md/bitmap */
 
-void md_bitmap_print_sb(struct bitmap *bitmap);
 void md_bitmap_update_sb(struct bitmap *bitmap);
 int md_bitmap_get_stats(struct bitmap *bitmap, struct md_bitmap_stats *stats);