mmzone.c (8bb5e7f4dcd9b9ef22a3ea25c9066a8a968f12dd) | mmzone.c (ec1c86b25f4bdd9dce6436c0539d2a6ae676e1c4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/mm/mmzone.c 4 * 5 * management codes for pgdats, zones and page flags 6 */ 7 8 --- 74 unchanged lines hidden (view full) --- 83 INIT_LIST_HEAD(&lruvec->lists[lru]); 84 /* 85 * The "Unevictable LRU" is imaginary: though its size is maintained, 86 * it is never scanned, and unevictable pages are not threaded on it 87 * (so that their lru fields can be reused to hold mlock_count). 88 * Poison its list head, so that any operations on it would crash. 89 */ 90 list_del(&lruvec->lists[LRU_UNEVICTABLE]); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/mm/mmzone.c 4 * 5 * management codes for pgdats, zones and page flags 6 */ 7 8 --- 74 unchanged lines hidden (view full) --- 83 INIT_LIST_HEAD(&lruvec->lists[lru]); 84 /* 85 * The "Unevictable LRU" is imaginary: though its size is maintained, 86 * it is never scanned, and unevictable pages are not threaded on it 87 * (so that their lru fields can be reused to hold mlock_count). 88 * Poison its list head, so that any operations on it would crash. 89 */ 90 list_del(&lruvec->lists[LRU_UNEVICTABLE]); |
91 92 lru_gen_init_lruvec(lruvec); |
|
91} 92 93#if defined(CONFIG_NUMA_BALANCING) && !defined(LAST_CPUPID_NOT_IN_PAGE_FLAGS) 94int page_cpupid_xchg_last(struct page *page, int cpupid) 95{ 96 unsigned long old_flags, flags; 97 int last_cpupid; 98 --- 12 unchanged lines hidden --- | 93} 94 95#if defined(CONFIG_NUMA_BALANCING) && !defined(LAST_CPUPID_NOT_IN_PAGE_FLAGS) 96int page_cpupid_xchg_last(struct page *page, int cpupid) 97{ 98 unsigned long old_flags, flags; 99 int last_cpupid; 100 --- 12 unchanged lines hidden --- |