File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -579,6 +579,12 @@ config COMPACTION
579
579
it and then we would be really interested to hear about that at
580
580
581
581
582
+ config COMPACT_UNEVICTABLE_DEFAULT
583
+ int
584
+ depends on COMPACTION
585
+ default 0 if PREEMPT_RT
586
+ default 1
587
+
582
588
#
583
589
# support for free page reporting
584
590
config PAGE_REPORTING
Original file line number Diff line number Diff line change @@ -1727,11 +1727,7 @@ typedef enum {
1727
1727
* Allow userspace to control policy on scanning the unevictable LRU for
1728
1728
* compactable pages.
1729
1729
*/
1730
- #ifdef CONFIG_PREEMPT_RT
1731
- int sysctl_compact_unevictable_allowed __read_mostly = 0 ;
1732
- #else
1733
- int sysctl_compact_unevictable_allowed __read_mostly = 1 ;
1734
- #endif
1730
+ int sysctl_compact_unevictable_allowed __read_mostly = CONFIG_COMPACT_UNEVICTABLE_DEFAULT ;
1735
1731
1736
1732
static inline void
1737
1733
update_fast_start_pfn (struct compact_control * cc , unsigned long pfn )
You can’t perform that action at this time.
0 commit comments