Explain clearly why kmalloc() can't use __GFP_HIGHMEM.
authorRobert P. J. Day <rpjday@mindspring.com>
Fri, 19 Oct 2007 21:11:38 +0000 (23:11 +0200)
committerAdrian Bunk <bunk@kernel.org>
Fri, 19 Oct 2007 21:11:38 +0000 (23:11 +0200)
Fix the wishy-washy comment to clearly explain why kmalloc() can't
use the __GFP_HIGHMEM zone modifier.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
mm/nommu.c

index 42fb84e9e8152819701d3da1cd449c30a0466db0..8f09333f78e1d63dbe1a5d24c9ba240ce683dbc6 100644 (file)
@@ -175,7 +175,8 @@ EXPORT_SYMBOL(vfree);
 void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot)
 {
        /*
-        * kmalloc doesn't like __GFP_HIGHMEM for some reason
+        *  You can't specify __GFP_HIGHMEM with kmalloc() since kmalloc()
+        * returns only a logical address.
         */
        return kmalloc(size, (gfp_mask | __GFP_COMP) & ~__GFP_HIGHMEM);
 }