btrfs: use mp_bvec_last_segment to get bio's last page
authorMing Lei <ming.lei@redhat.com>
Fri, 15 Feb 2019 11:13:16 +0000 (19:13 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 15 Feb 2019 15:40:11 +0000 (08:40 -0700)
commitc3a7ce738009912f9d237bdabf4a20038522de10
treedbe73b17f003885d7df92c20a3f277314eb95186
parentf70f44640759728d6e31326acbee08ca22d1066f
btrfs: use mp_bvec_last_segment to get bio's last page

Preparing for supporting multi-page bvec.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/btrfs/extent_io.c