summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2017-12-18 20:22:14 +0800
committerJens Axboe <axboe@kernel.dk>2018-01-06 09:18:00 -0700
commit6a501bf0807b5dc024fe52a4f956800a352c39ab (patch)
treecc869dfac6aaf6205896fd1e2adf9631f4d75b70 /fs
parent92681eca6104d2ec2fdf9fc65f529deb226ab0a1 (diff)
downloadlinux-stable-6a501bf0807b5dc024fe52a4f956800a352c39ab.tar.gz
linux-stable-6a501bf0807b5dc024fe52a4f956800a352c39ab.tar.bz2
linux-stable-6a501bf0807b5dc024fe52a4f956800a352c39ab.zip
blk-merge: compute bio->bi_seg_front_size efficiently
It is enough to check and compute bio->bi_seg_front_size just after the 1st segment is found, but current code checks that for each bvec, which is inefficient. This patch follows the way in __blk_recalc_rq_segments() for computing bio->bi_seg_front_size, and it is more efficient and code becomes more readable too. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions