]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:56:28 +0000 (16:56 +0100)
commite5c4b7b19b6b59dda8d2959740ea1ebaf0746a2c
tree1d47676ad80417d15cecadc15e86b7493576fa07
parenta27c597f262ddf2356a9cfb1df28fd2588d6ba76
md/md-bitmap: replace md_bitmap_status() with a new helper md_bitmap_get_stats()

[ Upstream commit 38f287d7e495ae00d4481702f44ff7ca79f5c9bc ]

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>
Stable-dep-of: 8d28d0ddb986 ("md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/md-bitmap.c
drivers/md/md-bitmap.h
drivers/md/md.c