]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
md/md-bitmap: add a new method skip_sync_blocks() in bitmap_operations
authorYu Kuai <yukuai3@huawei.com>
Fri, 29 Aug 2025 08:04:22 +0000 (16:04 +0800)
committerYu Kuai <yukuai3@huawei.com>
Sat, 6 Sep 2025 09:19:45 +0000 (17:19 +0800)
commitf196d72888640e35002ac3511757cefaa9c5e339
tree9f274b430f8e0bcfe1ebd56614f1161cc4484415
parentfb8cc3b0d9db94817a5aae2bcaf78dd079a89e52
md/md-bitmap: add a new method skip_sync_blocks() in bitmap_operations

This method is used to check if blocks can be skipped before calling
into pers->sync_request(), llbitmap will use this method to skip
resync for unwritten/clean data blocks, and recovery/check/repair for
unwritten data blocks;

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