block: get the 1st and last bvec via helpers
authorMing Lei <ming.lei@canonical.com>
Fri, 26 Feb 2016 15:40:52 +0000 (23:40 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:42:49 +0000 (14:42 -0700)
commit25e71a99f10e444cd00bb2ebccb11e1c9fb672b1
tree70219779b021ec7cd2d32bc1091208a126fe0bec
parente0af29171aa8912e1ca95023b75ef336cd70d661
block: get the 1st and last bvec via helpers

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

Cc: stable@vger.kernel.org
Reported-by: Sagi Grimberg <sagig@dev.mellanox.co.il>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blkdev.h