commit | 45a3fb95298b326ab8175f2bd97bd8666017b692 | [log] [tgz] |
---|---|---|
author | Ming Lei <ming.lei@redhat.com> | Fri Feb 15 19:13:14 2019 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Feb 15 08:40:11 2019 -0700 |
tree | 2f613b6fcee60b90ecb3fb9a4371fab448cf9427 | |
parent | 862e5a5e6fa2c7fd514c179e9ceea27a49a3327f [diff] |
block: introduce mp_bvec_last_segment() BTRFS and guard_bio_eod() need to get the last singlepage segment from one multipage bvec, so introduce this helper to make them happy. Reviewed-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>