]> www.infradead.org Git - users/willy/linux.git/commit
md/md-bitmap: add 'behind_writes' and 'behind_wait' into struct md_bitmap_stats
authorYu Kuai <yukuai3@huawei.com>
Mon, 26 Aug 2024 07:44:18 +0000 (15:44 +0800)
committerSong Liu <song@kernel.org>
Tue, 27 Aug 2024 17:14:15 +0000 (10:14 -0700)
commita0e7744a460ba5ca91f8d6fc4a696ee345b5baa9
tree2703bfdb1b04af7b391ca85a4d8369f3be482921
parent10bc2ac10597ebc0b25afbc72fa4284565548e36
md/md-bitmap: add 'behind_writes' and 'behind_wait' into struct md_bitmap_stats

There are no functional changes, avoid dereferencing bitmap directly to
prepare inventing a new bitmap.

Also fix following checkpatch warning by using wq_has_sleeper().

WARNING: waitqueue_active without comment

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