@@ -95,9 +95,7 @@ enum pageflags {
9595 PG_reclaim , /* To be reclaimed asap */
9696 PG_buddy , /* Page is free, on buddy lists */
9797 PG_swapbacked , /* Page is backed by RAM/swap */
98- #ifdef CONFIG_UNEVICTABLE_LRU
9998 PG_unevictable , /* Page is "unevictable" */
100- #endif
10199#ifdef CONFIG_HAVE_MLOCKED_PAGE_BIT
102100 PG_mlocked , /* Page is vma mlocked */
103101#endif
@@ -248,14 +246,8 @@ PAGEFLAG_FALSE(SwapCache)
248246 SETPAGEFLAG_NOOP (SwapCache ) CLEARPAGEFLAG_NOOP (SwapCache )
249247#endif
250248
251- #ifdef CONFIG_UNEVICTABLE_LRU
252249PAGEFLAG (Unevictable , unevictable ) __CLEARPAGEFLAG (Unevictable , unevictable )
253250 TESTCLEARFLAG (Unevictable , unevictable )
254- #else
255- PAGEFLAG_FALSE (Unevictable ) TESTCLEARFLAG_FALSE (Unevictable )
256- SETPAGEFLAG_NOOP (Unevictable ) CLEARPAGEFLAG_NOOP (Unevictable )
257- __CLEARPAGEFLAG_NOOP (Unevictable )
258- #endif
259251
260252#ifdef CONFIG_HAVE_MLOCKED_PAGE_BIT
261253#define MLOCK_PAGES 1
@@ -382,12 +374,6 @@ static inline void __ClearPageTail(struct page *page)
382374
383375#endif /* !PAGEFLAGS_EXTENDED */
384376
385- #ifdef CONFIG_UNEVICTABLE_LRU
386- #define __PG_UNEVICTABLE (1 << PG_unevictable)
387- #else
388- #define __PG_UNEVICTABLE 0
389- #endif
390-
391377#ifdef CONFIG_HAVE_MLOCKED_PAGE_BIT
392378#define __PG_MLOCKED (1 << PG_mlocked)
393379#else
@@ -403,7 +389,7 @@ static inline void __ClearPageTail(struct page *page)
403389 1 << PG_private | 1 << PG_private_2 | \
404390 1 << PG_buddy | 1 << PG_writeback | 1 << PG_reserved | \
405391 1 << PG_slab | 1 << PG_swapcache | 1 << PG_active | \
406- __PG_UNEVICTABLE | __PG_MLOCKED)
392+ 1 << PG_unevictable | __PG_MLOCKED)
407393
408394/*
409395 * Flags checked when a page is prepped for return by the page allocator.
0 commit comments