]> www.infradead.org Git - users/jedix/linux-maple.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, 22 Aug 2022 22:58:12 +0000 (15:58 -0700)
commit9d5963ed07f76a47f449b7a697c959cab43f9638
tree7185c5d5ce2a9161a5b11cb43aaf0c3d9100da29
parentd97cb18cedbae5591ff97f3325e6656cab58fb63
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: 121e6f3258fe ("mm/vmalloc: hugepage vmalloc mappings")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Cc: Uladzislau Rezki <urezki@gmail.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c