MIGRAGE_TYPES is used to be the mark of end and there are at most 3 elements for the one dimension array. Reduce to 3 to save little memory.
Unified · Split
| @@ -2268,7 +2268,7 @@ struct page *__rmqueue_smallest(struct zone *zone, unsigned int order, · 2267 unmodified lines | ||
| 2268 | 2268 | * This array describes the order lists are fallen back to when |
| 2269 | 2269 | * the free lists for the desirable migrate type are depleted |
| 2270 | 2270 | */ |
| 2271 | −static int fallbacks[MIGRATE_TYPES][4] = { | |
| 2271 | +static int fallbacks[MIGRATE_TYPES][3] = { | |
| 2272 | 2272 | [MIGRATE_UNMOVABLE] = { MIGRATE_RECLAIMABLE, MIGRATE_MOVABLE, MIGRATE_TYPES }, |
| 2273 | 2273 | [MIGRATE_MOVABLE] = { MIGRATE_RECLAIMABLE, MIGRATE_UNMOVABLE, MIGRATE_TYPES }, |
| 2274 | 2274 | [MIGRATE_RECLAIMABLE] = { MIGRATE_UNMOVABLE, MIGRATE_MOVABLE, MIGRATE_TYPES }, |