return (lru == LRU_UNEVICTABLE);
}
- * mem/swap backed and file backed pages are refeferenced.
+ struct zone_reclaim_stat {
+ /*
+ * The pageout code in vmscan.c keeps track of how many of the
++ * mem/swap backed and file backed pages are referenced.
+ * The higher the rotated/scanned ratio, the more valuable
+ * that cache is.
+ *
+ * The anon LRU stats live in [0], file LRU stats in [1]
+ */
+ unsigned long recent_rotated[2];
+ unsigned long recent_scanned[2];
+ };
+
struct lruvec {
struct list_head lists[NR_LRU_LISTS];
+ struct zone_reclaim_stat reclaim_stat;
};
/* Mask used at gathering information at once (see memcontrol.c) */