block: reuse part_in_flight_rw for part_in_flight
authorYu Kuai <yukuai3@huawei.com>
Tue, 6 May 2025 12:48:55 +0000 (20:48 +0800)
committerYu Kuai <yukuai3@huawei.com>
Sat, 10 May 2025 08:05:38 +0000 (16:05 +0800)
commit5b8f19aee47414b4cf76b6ea0310b2937ebb97e7
tree49cbdedd7eb5e05c58b098d9c0418966b7b9f6eb
parentc151919080ad4dc98bb40bc9cdcde412d72f8b23
block: reuse part_in_flight_rw for part_in_flight

They are almost identical, to make code cleaner.

Link: https://lore.kernel.org/linux-raid/20250506124903.2540268-2-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
block/genhd.c