]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerBrian Maly <brian.maly@oracle.com>
Mon, 23 Apr 2018 22:29:30 +0000 (18:29 -0400)
commita1c17a286243d420bd570ac2dc1cd62aede1ad90
treea3c885ee92864830269d4eab833a444b11022af9
parent77d40d17f8cde749126389dbc9392161f2f8ba20
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>
(cherry picked from commit 25e71a99f10e444cd00bb2ebccb11e1c9fb672b1)

Orabug: 27775588

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
include/linux/blkdev.h