]> www.infradead.org Git - users/hch/misc.git/commit
brd: remove the sector variable in brd_submit_bio
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Apr 2025 14:09:48 +0000 (07:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 28 Apr 2025 17:45:40 +0000 (11:45 -0600)
commit857aba38b56a0d8fa868706c57053dcd4282e436
tree8458e0c5651172d237028b5307720f21e9b07726
parent75d99aa279561fc6d91afec8bdd1b56548f860a2
brd: remove the sector variable in brd_submit_bio

The bvec iter iterates over the sector already, no need to duplicate the
work.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250428141014.2360063-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/brd.c