]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: clean up the check in blkdev_iomap_begin()
authorLi Nan <linan122@huawei.com>
Tue, 25 Jun 2024 11:55:17 +0000 (19:55 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Jun 2024 11:56:35 +0000 (05:56 -0600)
commite269537e491da6336776b5548a3c73f62273aa15
tree3c1e130b5d8c331d33ca76b0117d13e9f5ae8639
parent69b6517687a4b1fb250bd8c9c193a0a304c8ba17
block: clean up the check in blkdev_iomap_begin()

It is odd to check the offset amidst a series of assignments. Moving this
check to the beginning of the function makes the code look better.

Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240625115517.1472120-1-linan666@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c