summaryrefslogtreecommitdiffstats
path: root/block/blk-timeout.c
diff options
context:
space:
mode:
authorChristoph Hellwig2019-06-06 12:29:02 +0200
committerJens Axboe2019-06-20 18:29:22 +0200
commite9cd19c0c198aa1c893e142b015fde6da862ed52 (patch)
tree323cfe08f79300ebe2fa72105e4c7f4d6d1c17d5 /block/blk-timeout.c
parentblock: remove the bi_phys_segments field in struct bio (diff)
downloadkernel-qcow2-linux-e9cd19c0c198aa1c893e142b015fde6da862ed52.tar.gz
kernel-qcow2-linux-e9cd19c0c198aa1c893e142b015fde6da862ed52.tar.xz
kernel-qcow2-linux-e9cd19c0c198aa1c893e142b015fde6da862ed52.zip
block: simplify blk_recalc_rq_segments
Return the segement and let the callers assign them, which makes the code a littler more obvious. Also pass the request instead of q plus bio chain, allowing for the use of rq_for_each_bvec. Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-timeout.c')
0 files changed, 0 insertions, 0 deletions