mm: vmscan: harmonize writeback congestion tracking for nodes & memcgs
[platform/kernel/linux-rpi.git] / include / linux / mmzone.h
index ed333ee..92d6fb2 100644 (file)
@@ -295,6 +295,12 @@ struct zone_reclaim_stat {
        unsigned long           recent_scanned[2];
 };
 
+enum lruvec_flags {
+       LRUVEC_CONGESTED,               /* lruvec has many dirty pages
+                                        * backed by a congested BDI
+                                        */
+};
+
 struct lruvec {
        struct list_head                lists[NR_LRU_LISTS];
        struct zone_reclaim_stat        reclaim_stat;
@@ -302,6 +308,8 @@ struct lruvec {
        atomic_long_t                   inactive_age;
        /* Refaults at the time of last reclaim cycle */
        unsigned long                   refaults;
+       /* Various lruvec state flags (enum lruvec_flags) */
+       unsigned long                   flags;
 #ifdef CONFIG_MEMCG
        struct pglist_data *pgdat;
 #endif
@@ -571,9 +579,6 @@ struct zone {
 } ____cacheline_internodealigned_in_smp;
 
 enum pgdat_flags {
-       PGDAT_CONGESTED,                /* pgdat has many dirty pages backed by
-                                        * a congested BDI
-                                        */
        PGDAT_DIRTY,                    /* reclaim scanning has recently found
                                         * many dirty file pages at the tail
                                         * of the LRU.