]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vmalloc.c: support HIGHMEM pages in vmap_pages_range_noflush()
authorMatthew Wilcox <willy@infradead.org>
Thu, 18 Aug 2022 21:07:41 +0000 (22:07 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:25:56 +0000 (20:25 -0700)
commit40ffd2747bec9baf6b9898701618e5b094ac0493
treee92539d9cbf55d51bf5d70e0b28b252177b2a443
parent3c33a9e6b228a1767ef3123017271a29ed4fc647
mm/vmalloc.c: support HIGHMEM pages in vmap_pages_range_noflush()

If the pages being mapped are in HIGHMEM, page_address() returns NULL.
This probably wasn't noticed before because there aren't currently any
architectures with HAVE_ARCH_HUGE_VMALLOC and HIGHMEM, but it's simpler to
call page_to_phys() and futureproofs us against such configurations
existing.

Link: https://lkml.kernel.org/r/Yv6qHc6e+m7TMWhi@casper.infradead.org
Fixes: ba43e7c50dbd ("mm/vmalloc: hugepage vmalloc mappings")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Uladzislau Rezki <urezki@gmail.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c