]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md/md-bitmap: cleanup bitmap_ops->startwrite()
authorYu Kuai <yukuai3@huawei.com>
Sat, 24 May 2025 06:13:00 +0000 (14:13 +0800)
committerYu Kuai <yukuai3@huawei.com>
Fri, 30 May 2025 07:47:23 +0000 (15:47 +0800)
commit38f520a37d541a52ce16437a379824fabcd768da
tree7abc18349d6afe27fe067d2094d863f614de5506
parentb886475804230cad8075e1ed8c7fb2333f7c41c1
md/md-bitmap: cleanup bitmap_ops->startwrite()

bitmap_startwrite() always return 0, and the caller doesn't check return
value as well, hence change the method to void.

Also rename startwrite/endwrite to start_write/end_write, which is more in
line with the usual naming convention.

Link: https://lore.kernel.org/linux-raid/20250524061320.370630-4-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>
drivers/md/md-bitmap.c
drivers/md/md-bitmap.h
drivers/md/md.c