diff options
author | 2020-08-17 20:52:06 +0100 | |
---|---|---|
committer | 2020-08-17 19:35:53 -0700 | |
commit | d81665198b83e55a28339d1f3e4890ed8a434556 (patch) | |
tree | b6038be4bcbc16680ed2cec65e10ea1cc6f63933 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | block: virtio_blk: fix handling single range discard request (diff) | |
download | wireguard-linux-d81665198b83e55a28339d1f3e4890ed8a434556.tar.xz wireguard-linux-d81665198b83e55a28339d1f3e4890ed8a434556.zip |
block: Fix page_is_mergeable() for compound pages
If we pass in an offset which is larger than PAGE_SIZE, then
page_is_mergeable() thinks it's not mergeable with the previous bio_vec,
leading to a large number of bio_vecs being used. Use a slightly more
obvious test that the two pages are compatible with each other.
Fixes: 52d52d1c98a9 ("block: only allow contiguous page structs in a bio_vec")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions