]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md/md-bitmap: pass in mddev directly for md_bitmap_resize()
authorYu Kuai <yukuai3@huawei.com>
Mon, 26 Aug 2024 07:44:44 +0000 (15:44 +0800)
committerSong Liu <song@kernel.org>
Tue, 27 Aug 2024 19:43:15 +0000 (12:43 -0700)
commite1791dae6cbd65e5102dca40b8adadef1d89c1b9
treeeac6979de71f17227293294a49bd1e0fb9dd0e39
parent18db2a9c60aefc61e796f6a384a952999d3b8885
md/md-bitmap: pass in mddev directly for md_bitmap_resize()

And move the condition "if (mddev->bitmap)" into md_bitmap_resize() as
well, on the one hand make code cleaner, on the other hand try not to
access bitmap directly.

Since we are here, also change the parameter 'init' from int to bool.

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