]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
lightnvm: pblk: fix freeing of merged pages
authorHeiner Litz <hlitz@ucsc.edu>
Fri, 21 Jun 2019 09:11:59 +0000 (11:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Jun 2019 09:14:29 +0000 (03:14 -0600)
commit510fd8ea98fcb586c01aef93d87c060a159ac30a
treef0f7c4d09c4c953296321dd66547c3fdddfa8da0
parent474a280036e8d319ef852f1dec59bedf4eda0107
lightnvm: pblk: fix freeing of merged pages

bio_add_pc_page() may merge pages when a bio is padded due to a flush.
Fix iteration over the bio to free the correct pages in case of a merge.

Signed-off-by: Heiner Litz <hlitz@ucsc.edu>
Reviewed-by: Javier González <javier@javigon.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c