]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/percpu.c
slub: Eliminate repeated use of c->page through a new page variable
[mirror_ubuntu-bionic-kernel.git] / mm / percpu.c
index 3f930018aa60dc075bc49f7283c57b2b3b6f0035..55d4d113fbd37fe4edb7531dc61102fc8f7c1bcc 100644 (file)
@@ -1008,8 +1008,7 @@ phys_addr_t per_cpu_ptr_to_phys(void *addr)
        }
 
        if (in_first_chunk) {
-               if ((unsigned long)addr < VMALLOC_START ||
-                   (unsigned long)addr >= VMALLOC_END)
+               if (!is_vmalloc_addr(addr))
                        return __pa(addr);
                else
                        return page_to_phys(vmalloc_to_page(addr));