aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-10-19 22:24:12 +0100
committerJens Axboe <[email protected]>2021-10-20 08:08:05 -0600
commit478eb72b815f33734723867ff236d96afa418d69 (patch)
treedc81054f6f79d225ae7afcbab10996ca42b3cc09 /net/unix/af_unix.c
parent859897c3fb9ad12fef429b026154e11350d0ceac (diff)
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions