Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8518609deeacebafd71855f87cc411adb0c3be4e
Commit:     8518609deeacebafd71855f87cc411adb0c3be4e
Parent:     3a4fa0a25da81600ea0bcd75692ae8ca6050d165
Author:     Robert P. J. Day <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 19 23:11:38 2007 +0200
Committer:  Adrian Bunk <[EMAIL PROTECTED]>
CommitDate: Fri Oct 19 23:11:38 2007 +0200

    Explain clearly why kmalloc() can't use __GFP_HIGHMEM.
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
---
 mm/nommu.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/mm/nommu.c b/mm/nommu.c
index 42fb84e..8f09333 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -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);
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to