compaction.c (31d1b7710262fba12282b24083f20dc76e0efc93) | compaction.c (a921444382b49cc7fdeca3fba3e278bc09484a27) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/mm/compaction.c 4 * 5 * Memory compaction for the reduction of external fragmentation. Note that 6 * this heavily depends upon page migration to do all the real heavy 7 * lifting 8 * --- 1417 unchanged lines hidden (view full) --- 1426 int classzone_idx, 1427 unsigned long wmark_target) 1428{ 1429 unsigned long watermark; 1430 1431 if (is_via_compact_memory(order)) 1432 return COMPACT_CONTINUE; 1433 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/mm/compaction.c 4 * 5 * Memory compaction for the reduction of external fragmentation. Note that 6 * this heavily depends upon page migration to do all the real heavy 7 * lifting 8 * --- 1417 unchanged lines hidden (view full) --- 1426 int classzone_idx, 1427 unsigned long wmark_target) 1428{ 1429 unsigned long watermark; 1430 1431 if (is_via_compact_memory(order)) 1432 return COMPACT_CONTINUE; 1433 |
1434 watermark = zone->watermark[alloc_flags & ALLOC_WMARK_MASK]; | 1434 watermark = wmark_pages(zone, alloc_flags & ALLOC_WMARK_MASK); |
1435 /* 1436 * If watermarks for high-order allocation are already met, there 1437 * should be no need for compaction at all. 1438 */ 1439 if (zone_watermark_ok(zone, order, watermark, classzone_idx, 1440 alloc_flags)) 1441 return COMPACT_SUCCESS; 1442 --- 721 unchanged lines hidden --- | 1435 /* 1436 * If watermarks for high-order allocation are already met, there 1437 * should be no need for compaction at all. 1438 */ 1439 if (zone_watermark_ok(zone, order, watermark, classzone_idx, 1440 alloc_flags)) 1441 return COMPACT_SUCCESS; 1442 --- 721 unchanged lines hidden --- |