Commit 2466c60d authored by Ming Lei's avatar Ming Lei Committed by Tim Gardner
Browse files

block: get the 1st and last bvec via helpers

BugLink: http://bugs.launchpad.net/bugs/1555640



commit 25e71a99 upstream.

This patch applies the two introduced helpers to
figure out the 1st and last bvec, and fixes the
original way after bio splitting.

Reported-by: default avatarSagi Grimberg <sagig@dev.mellanox.co.il>
Reviewed-by: default avatarSagi Grimberg <sagig@mellanox.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent fc8f17fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment