staging: lustre: Use is_vmalloc_addr
authorLaura Abbott <lauraa@codeaurora.org>
Thu, 2 Jan 2014 21:53:23 +0000 (13:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 23:54:32 +0000 (15:54 -0800)
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>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c

index 26b49a2..9364863 100644 (file)
@@ -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;