aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-10-19 21:24:12 +0000
committerJens Axboe <[email protected]>2021-10-20 14:08:05 +0000
commit478eb72b815f33734723867ff236d96afa418d69 (patch)
treedc81054f6f79d225ae7afcbab10996ca42b3cc09 /fs/btrfs/dev-replace.c
parentblock: convert leftovers to bdev_get_queue (diff)
downloadkernel-478eb72b815f33734723867ff236d96afa418d69.tar.gz
kernel-478eb72b815f33734723867ff236d96afa418d69.zip
block: optimise req_bio_endio()
First, get rid of an extra branch and chain error checks. Also reshuffle it with bio_advance(), so it goes closer to the final check, with that the compiler loads rq->rq_flags only once, and also doesn't reload bio->bi_iter.bi_size if bio_advance() didn't actually advanced the iter. Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions