diff options
| author | Mel Gorman <[email protected]> | 2023-01-13 11:12:16 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-03 06:33:12 +0000 |
| commit | 1ebbb21811b76c3b932959787f37985af36f62fa (patch) | |
| tree | a5bd6d1d349adfdaeb1f3a713d315123f26ba42c /lib/test_printf.c | |
| parent | mm/page_alloc: explicitly define what alloc flags deplete min reserves (diff) | |
| download | kernel-1ebbb21811b76c3b932959787f37985af36f62fa.tar.gz kernel-1ebbb21811b76c3b932959787f37985af36f62fa.zip | |
mm/page_alloc: explicitly define how __GFP_HIGH non-blocking allocations accesses reserves
GFP_ATOMIC allocations get flagged ALLOC_HARDER which is a vague
description. In preparation for the removal of GFP_ATOMIC redefine
__GFP_ATOMIC to simply mean non-blocking and renaming ALLOC_HARDER to
ALLOC_NON_BLOCK accordingly. __GFP_HIGH is required for access to
reserves but non-blocking is granted more access. For example, GFP_NOWAIT
is non-blocking but has no special access to reserves. A __GFP_NOFAIL
blocking allocation is granted access similar to __GFP_HIGH if the only
alternative is an OOM kill.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Mel Gorman <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: NeilBrown <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions
