Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Laura Abbott and committed by
Greg Kroah-Hartman
175f5475 731becf8

+1 -2
+1 -2
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c
··· 529 529 { 530 530 struct page *page; 531 531 532 - if (vaddr >= VMALLOC_START && 533 - vaddr < VMALLOC_END) { 532 + if (is_vmalloc_addr(vaddr)) { 534 533 page = vmalloc_to_page ((void *)vaddr); 535 534 LASSERT (page != NULL); 536 535 return page;