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)
committerSong Liu <song@kernel.org>
Tue, 27 Aug 2024 17:14:15 +0000 (10:14 -0700)
commitec6bb299c7c3dd4ca1724d13d5f5fae3ee54fc65
tree01c310778a0fa5ee221708e9f7fac84c4677b327
parent82697ccf7e495c1ba81e315c2886d6220ff84c2c
md/md-bitmap: add 'sync_size' into struct md_bitmap_stats

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>
drivers/md/md-bitmap.c
drivers/md/md-bitmap.h
drivers/md/md-cluster.c