]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md/md-bitmap: add a new helper md_bitmap_set_pages()
authorYu Kuai <yukuai3@huawei.com>
Mon, 26 Aug 2024 07:44:20 +0000 (15:44 +0800)
committerSong Liu <song@kernel.org>
Tue, 27 Aug 2024 17:14:15 +0000 (10:14 -0700)
commit27832ad3f7f0f5080d472fa8621ff92166ca9fac
tree868e73a7f4737c8b449b26f624e83c3980e994ef
parent9e4481ce0e55b4ef9795845d8b6770e3f6f4b24d
md/md-bitmap: add a new helper md_bitmap_set_pages()

Currently md-cluster will set bitmap->counts.pages directly, add a
helper to do this to avoid dereferencing bitmap directly.

Noted that after this patch bitmap is not dereferenced directly anymore
and following patches will move the structure inside md-bitmap.c.

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