1 #ifndef LINUX_MM_INLINE_H
2 #define LINUX_MM_INLINE_H
19 static inline int page_is_file_cache(
struct page *
page)
21 return !PageSwapBacked(page);
29 list_add(&page->
lru, &lruvec->
lists[lru]);
30 __mod_zone_page_state(lruvec_zone(lruvec),
NR_LRU_BASE + lru, nr_pages);
34 struct lruvec *lruvec,
enum lru_list lru)
39 __mod_zone_page_state(lruvec_zone(lruvec),
NR_LRU_BASE + lru, -nr_pages);
50 static inline enum lru_list page_lru_base_type(
struct page *page)
52 if (page_is_file_cache(page))
68 if (PageUnevictable(page)) {
69 __ClearPageUnevictable(page);
72 lru = page_lru_base_type(page);
73 if (PageActive(page)) {
74 __ClearPageActive(page);
92 if (PageUnevictable(page))
95 lru = page_lru_base_type(page);