compaction.c (a108772d03d8bdb43258218b00bfe43bbe1e8800) | compaction.c (c7e0b3d088717d148707cd6fcb12f97c6fd961c1) |
---|---|
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 * --- 1713 unchanged lines hidden (view full) --- 1722 ISOLATE_NONE, /* No pages isolated, continue scanning */ 1723 ISOLATE_SUCCESS, /* Pages isolated, migrate */ 1724} isolate_migrate_t; 1725 1726/* 1727 * Allow userspace to control policy on scanning the unevictable LRU for 1728 * compactable pages. 1729 */ | 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 * --- 1713 unchanged lines hidden (view full) --- 1722 ISOLATE_NONE, /* No pages isolated, continue scanning */ 1723 ISOLATE_SUCCESS, /* Pages isolated, migrate */ 1724} isolate_migrate_t; 1725 1726/* 1727 * Allow userspace to control policy on scanning the unevictable LRU for 1728 * compactable pages. 1729 */ |
1730#ifdef CONFIG_PREEMPT_RT 1731int sysctl_compact_unevictable_allowed __read_mostly = 0; 1732#else 1733int sysctl_compact_unevictable_allowed __read_mostly = 1; 1734#endif | 1730int sysctl_compact_unevictable_allowed __read_mostly = CONFIG_COMPACT_UNEVICTABLE_DEFAULT; |
1735 1736static inline void 1737update_fast_start_pfn(struct compact_control *cc, unsigned long pfn) 1738{ 1739 if (cc->fast_start_pfn == ULONG_MAX) 1740 return; 1741 1742 if (!cc->fast_start_pfn) --- 1328 unchanged lines hidden --- | 1731 1732static inline void 1733update_fast_start_pfn(struct compact_control *cc, unsigned long pfn) 1734{ 1735 if (cc->fast_start_pfn == ULONG_MAX) 1736 return; 1737 1738 if (!cc->fast_start_pfn) --- 1328 unchanged lines hidden --- |