Thread (3 messages) 3 messages, 2 authors, 2009-10-02

Re: [PATCH 03/31] mm: expose gfp_to_alloc_flags()

From: David Rientjes <rientjes@google.com>
Date: 2009-10-01 21:03:23
Also in: linux-mm, lkml

On Thu, 1 Oct 2009, Suresh Jayaraman wrote:
From: Peter Zijlstra <redacted> 

Expose the gfp to alloc_flags mapping, so we can use it in other parts
of the vm.

Signed-off-by: Peter Zijlstra <redacted>
Signed-off-by: Suresh Jayaraman <redacted>
Nack, these flags are internal to the page allocator and exporting them to 
generic VM code is unnecessary.

The only bit you actually use in your patchset is ALLOC_NO_WATERMARKS to 
determine whether a particular allocation can use memory reserves.  I'd 
suggest adding a bool function that returns whether the current context is 
given access to reserves including your new __GFP_MEMALLOC flag and 
exporting that instead.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help