Commit 0a79cda
mm: use alloc_flags to record if kswapd can wake
This is a preparation patch that copies the GFP flag __GFP_KSWAPD_RECLAIM
into alloc_flags. This is a preparation patch only that avoids having to
pass gfp_mask through a long callchain in a future patch.
Note that the setting in the fast path happens in alloc_flags_nofragment()
and it may be claimed that this has nothing to do with ALLOC_NO_FRAGMENT.
That's true in this patch but is not true later so it's done now for
easier review to show where the flag needs to be recorded.
No functional change.
[mgorman@techsingularity.net: ALLOC_KSWAPD flag needs to be applied in the !CONFIG_ZONE_DMA32 case]
Link: http://lkml.kernel.org/r/20181126143503.GO23260@techsingularity.net
Link: http://lkml.kernel.org/r/20181123114528.28802-4-mgorman@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Zi Yan <zi.yan@cs.rutgers.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent a921444 commit 0a79cda
2 files changed
+19
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
502 | 503 | | |
503 | 504 | | |
504 | 505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3268 | 3268 | | |
3269 | 3269 | | |
3270 | 3270 | | |
3271 | | - | |
3272 | 3271 | | |
3273 | 3272 | | |
3274 | 3273 | | |
| |||
3278 | 3277 | | |
3279 | 3278 | | |
3280 | 3279 | | |
3281 | | - | |
| 3280 | + | |
3282 | 3281 | | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
3283 | 3288 | | |
3284 | | - | |
| 3289 | + | |
3285 | 3290 | | |
3286 | 3291 | | |
3287 | 3292 | | |
| |||
3290 | 3295 | | |
3291 | 3296 | | |
3292 | 3297 | | |
3293 | | - | |
| 3298 | + | |
3294 | 3299 | | |
3295 | | - | |
3296 | | - | |
3297 | | - | |
3298 | | - | |
3299 | | - | |
3300 | | - | |
3301 | | - | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
3302 | 3303 | | |
3303 | | - | |
3304 | 3304 | | |
3305 | 3305 | | |
3306 | 3306 | | |
| |||
3939 | 3939 | | |
3940 | 3940 | | |
3941 | 3941 | | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
3942 | 3945 | | |
3943 | 3946 | | |
3944 | 3947 | | |
| |||
4170 | 4173 | | |
4171 | 4174 | | |
4172 | 4175 | | |
4173 | | - | |
| 4176 | + | |
4174 | 4177 | | |
4175 | 4178 | | |
4176 | 4179 | | |
| |||
4228 | 4231 | | |
4229 | 4232 | | |
4230 | 4233 | | |
4231 | | - | |
| 4234 | + | |
4232 | 4235 | | |
4233 | 4236 | | |
4234 | 4237 | | |
| |||
4451 | 4454 | | |
4452 | 4455 | | |
4453 | 4456 | | |
4454 | | - | |
| 4457 | + | |
4455 | 4458 | | |
4456 | 4459 | | |
4457 | 4460 | | |
| |||
0 commit comments