md/md-bitmap: replace md_bitmap_status() with a new helper md_bitmap_get_stats()
authorYu Kuai <yukuai3@huawei.com>
Mon, 26 Aug 2024 07:44:12 +0000 (15:44 +0800)
committerSong Liu <song@kernel.org>
Tue, 27 Aug 2024 17:14:14 +0000 (10:14 -0700)
commit38f287d7e495ae00d4481702f44ff7ca79f5c9bc
tree70f15159582cca5084d2111448c3523f2182514f
parent2db4fa1b7e1897908d5cd11b1e22233ff0c6ba49
md/md-bitmap: replace md_bitmap_status() with a new helper md_bitmap_get_stats()

There are no functional changes, and the new helper will be used in
multiple places in following patches to avoid dereferencing bitmap
directly.

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