Christoph Hellwig 9bb33f24ab block: refactor the bounce buffering code
Get rid of all the PFN arithmetics and just use an enum for the two
remaining options, and use PageHighMem for the actual bounce decision.

Add a fast path to entirely avoid the call for the common case of a queue
not using the legacy bouncing code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210331073001.46776-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-04-06 09:28:17 -06:00
..
2021-02-21 11:02:48 -08:00
2021-04-06 09:28:17 -06:00
2020-09-03 15:20:47 -06:00
2020-03-17 20:55:21 +01:00
2021-02-22 10:53:05 -08:00
2020-05-29 16:30:39 -06:00
2020-09-23 09:18:13 -06:00
2020-01-06 20:59:04 -07:00