]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
md/md-bitmap: add 'sync_size' into struct md_bitmap_stats
authorYu Kuai <yukuai3@huawei.com>
Mon, 26 Aug 2024 07:44:16 +0000 (15:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:10:44 +0000 (04:10 -0800)
commit754fffa651d24621a0b596d0e157181b5e907233
tree52b32cd651fd6bee6c4076b461b769f42c413233
parent023d5bc950862427a519d4e1dc0b03ec9b5cb9cc
md/md-bitmap: add 'sync_size' into struct md_bitmap_stats

[ Upstream commit ec6bb299c7c3dd4ca1724d13d5f5fae3ee54fc65 ]

To avoid dereferencing bitmap directly in md-cluster to prepare
inventing a new bitmap.

BTW, also fix following checkpatch warnings:

WARNING: Deprecated use of 'kmap_atomic', prefer 'kmap_local_page' instead
WARNING: Deprecated use of 'kunmap_atomic', prefer 'kunmap_local' instead

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240826074452.1490072-7-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-cluster.c