diff options
author | Shile Zhang <zhangshile@gmail.com> | 2018-01-31 19:20:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-31 20:18:39 -0500 |
commit | 3c2c648842843326f8c6ace425810eb47864c6b4 (patch) | |
tree | f913ec06545ed56ae4b555e0e95bc70e11c0272a /mm/page_alloc.c | |
parent | c054a78c66c7a5aa218220d8949ebcf13a86b796 (diff) |
mm/page_alloc.c: fix typos in comments
Link: http://lkml.kernel.org/r/1515485774-4768-1-git-send-email-zhangshile@gmail.com
Signed-off-by: Shile Zhang <zhangshile@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index b411f97dfb25..a6972750e7c5 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -293,7 +293,7 @@ int page_group_by_mobility_disabled __read_mostly; | |||
293 | #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT | 293 | #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT |
294 | 294 | ||
295 | /* | 295 | /* |
296 | * Determine how many pages need to be initialized durig early boot | 296 | * Determine how many pages need to be initialized during early boot |
297 | * (non-deferred initialization). | 297 | * (non-deferred initialization). |
298 | * The value of first_deferred_pfn will be set later, once non-deferred pages | 298 | * The value of first_deferred_pfn will be set later, once non-deferred pages |
299 | * are initialized, but for now set it ULONG_MAX. | 299 | * are initialized, but for now set it ULONG_MAX. |
@@ -344,7 +344,7 @@ static inline bool update_defer_init(pg_data_t *pgdat, | |||
344 | unsigned long pfn, unsigned long zone_end, | 344 | unsigned long pfn, unsigned long zone_end, |
345 | unsigned long *nr_initialised) | 345 | unsigned long *nr_initialised) |
346 | { | 346 | { |
347 | /* Always populate low zones for address-contrained allocations */ | 347 | /* Always populate low zones for address-constrained allocations */ |
348 | if (zone_end < pgdat_end_pfn(pgdat)) | 348 | if (zone_end < pgdat_end_pfn(pgdat)) |
349 | return true; | 349 | return true; |
350 | (*nr_initialised)++; | 350 | (*nr_initialised)++; |
@@ -3397,7 +3397,7 @@ __alloc_pages_may_oom(gfp_t gfp_mask, unsigned int order, | |||
3397 | if (gfp_mask & __GFP_THISNODE) | 3397 | if (gfp_mask & __GFP_THISNODE) |
3398 | goto out; | 3398 | goto out; |
3399 | 3399 | ||
3400 | /* Exhausted what can be done so it's blamo time */ | 3400 | /* Exhausted what can be done so it's blame time */ |
3401 | if (out_of_memory(&oc) || WARN_ON_ONCE(gfp_mask & __GFP_NOFAIL)) { | 3401 | if (out_of_memory(&oc) || WARN_ON_ONCE(gfp_mask & __GFP_NOFAIL)) { |
3402 | *did_some_progress = 1; | 3402 | *did_some_progress = 1; |
3403 | 3403 | ||