]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - block/blk-merge.c
Revert "block: blk-merge: try to make front segments in full size"
authorMing Lei <ming.lei@redhat.com>
Wed, 10 Jan 2018 02:51:29 +0000 (10:51 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jan 2018 03:23:19 +0000 (20:23 -0700)
commitb4b6cb613519b7449da510bccf08986371b328cb
tree5d20eb6cae58d2e0b0a1dc84935cad88244827b5
parent5448aca41cd58e1a20574b6f29a8478bbb123dc3
Revert "block: blk-merge: try to make front segments in full size"

This reverts commit a2d37968d784363842f87820a21e106741d28004.

If max segment size isn't 512-aligned, this patch won't work well.

Also once multipage bvec is enabled, adjacent bvecs won't be physically
contiguous if page is added via bio_add_page(), so we don't need this
kind of complicated logic.

Reported-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c