On 3/26/21 6:58 AM, Christoph Hellwig wrote: > 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@xxxxxx> > --- > block/blk-core.c | 6 ++---- > block/blk-settings.c | 42 ++++++++---------------------------------- > block/blk.h | 16 ++++++++++++---- > block/bounce.c | 35 +++++------------------------------ > include/linux/blkdev.h | 29 +++++++++++------------------ > 5 files changed, 38 insertions(+), 90 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer