Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 175f5475 authored by Laura Abbott's avatar Laura Abbott Committed by Greg Kroah-Hartman
Browse files

staging: lustre: Use is_vmalloc_addr



Instead of manually checking the bounds of VMALLOC_START and
VMALLOC_END, just use is_vmalloc_addr. That's what the function
was designed for.

Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 731becf8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -529,8 +529,7 @@ kiblnd_kvaddr_to_page (unsigned long vaddr)
{
	struct page *page;

	if (vaddr >= VMALLOC_START &&
	    vaddr < VMALLOC_END) {
	if (is_vmalloc_addr(vaddr)) {
		page = vmalloc_to_page ((void *)vaddr);
		LASSERT (page != NULL);
		return page;