commit | f70f44640759728d6e31326acbee08ca22d1066f | [log] [tgz] |
---|---|---|
author | Ming Lei <ming.lei@redhat.com> | Fri Feb 15 19:13:15 2019 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Feb 15 08:40:11 2019 -0700 |
tree | c8504310301fb51dbf8a28612385b69d40dcc29d | |
parent | 45a3fb95298b326ab8175f2bd97bd8666017b692 [diff] |
fs/buffer.c: use bvec iterator to truncate the bio Once multi-page bvec is enabled, the last bvec may include more than one page, this patch use mp_bvec_last_segment() to truncate the bio. Reviewed-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>