mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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 <rpjday@mindspring.com> Signed-off-by: Adrian Bunk <bunk@kernel.org>
This commit is contained in:
parent
3a4fa0a25d
commit
8518609dee
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue