]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md/md-cluster: use helper md_bitmap_get_stats() to get pages in resize_bitmaps()
authorYu Kuai <yukuai3@huawei.com>
Mon, 26 Aug 2024 07:44:19 +0000 (15:44 +0800)
committerSong Liu <song@kernel.org>
Tue, 27 Aug 2024 17:14:15 +0000 (10:14 -0700)
commit9e4481ce0e55b4ef9795845d8b6770e3f6f4b24d
tree8d8b74856784d8616af37d949f7af401f103555e
parenta0e7744a460ba5ca91f8d6fc4a696ee345b5baa9
md/md-cluster: use helper md_bitmap_get_stats() to get pages in resize_bitmaps()

Use the existed helper instead of open coding it, avoid dereferencing
bitmap directly to prepare inventing a new bitmap.

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