From: Jiankang Chen Date: Thu, 1 Feb 2018 00:16:52 +0000 (-0800) Subject: mm/page_alloc.c: fix comment in __get_free_pages() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=48128397b04679717cfd419d55ec86456b84eb61;p=linux.git mm/page_alloc.c: fix comment in __get_free_pages() __get_free_pages() will return a virtual address, but it is not just a 32-bit address, for example on a 64-bit system. And this comment really confuses new readers of mm. Link: http://lkml.kernel.org/r/1511780964-64864-1-git-send-email-chenjiankang1@huawei.com Signed-off-by: Jiankang Chen Reported-by: Hanjun Guo Cc: Mel Gorman Cc: Johannes Weiner Cc: Yisheng Xie Cc: Kefeng Wang Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a73cffe287a55..b411f97dfb25c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4278,7 +4278,7 @@ unsigned long __get_free_pages(gfp_t gfp_mask, unsigned int order) struct page *page; /* - * __get_free_pages() returns a 32-bit address, which cannot represent + * __get_free_pages() returns a virtual address, which cannot represent * a highmem page */ VM_BUG_ON((gfp_mask & __GFP_HIGHMEM) != 0);