md: add a new parameter 'offset' to md_super_write()
authorYu Kuai <yukuai3@huawei.com>
Fri, 29 Aug 2025 08:04:16 +0000 (16:04 +0800)
committerYu Kuai <yukuai3@huawei.com>
Sat, 6 Sep 2025 09:17:26 +0000 (17:17 +0800)
commitd01acbce391767318c94fb1f6d648cfabb428f9d
tree8eff0a2628b8341b6ce07d5ab4412a04d6159dd7
parentc27474ac1d4609af3c1c38ccac252c2575b47b9e
md: add a new parameter 'offset' to md_super_write()

The parameter is always set to 0 for now, following patches will use
this helper to write llbitmap to underlying disks, allow writing
dirty sectors instead of the whole page.

Also rename md_super_write to md_write_metadata since there is nothing
super-block specific.

Link: https://lore.kernel.org/linux-raid/20250829080426.1441678-2-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Xiao Ni <xni@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Li Nan <linan122@huawei.com>
drivers/md/md-bitmap.c
drivers/md/md.c
drivers/md/md.h