Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda41566

Browse files
weiyang-linuxtorvalds
authored andcommitted
mm/page_alloc: fallbacks at most has 3 elements
MIGRAGE_TYPES is used to be the mark of end and there are at most 3elements for the one dimension array.Reduce to 3 to save little memory.Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Reviewed-by: David Hildenbrand <david@redhat.com>Link:http://lkml.kernel.org/r/20200625231022.18784-1-richard.weiyang@linux.alibaba.comSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent9e15afa commitda41566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎mm/page_alloc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ struct page *__rmqueue_smallest(struct zone *zone, unsigned int order,
22682268
* This array describes the order lists are fallen back to when
22692269
* the free lists for the desirable migrate type are depleted
22702270
*/
2271-
staticintfallbacks[MIGRATE_TYPES][4]= {
2271+
staticintfallbacks[MIGRATE_TYPES][3]= {
22722272
[MIGRATE_UNMOVABLE]= {MIGRATE_RECLAIMABLE,MIGRATE_MOVABLE,MIGRATE_TYPES },
22732273
[MIGRATE_MOVABLE]= {MIGRATE_RECLAIMABLE,MIGRATE_UNMOVABLE,MIGRATE_TYPES },
22742274
[MIGRATE_RECLAIMABLE]= {MIGRATE_UNMOVABLE,MIGRATE_MOVABLE,MIGRATE_TYPES },

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp