aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 5c76737d836b..2aaf72f7e345 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -495,6 +495,10 @@ typedef enum {
495 ZONE_CONGESTED, /* zone has many dirty pages backed by 495 ZONE_CONGESTED, /* zone has many dirty pages backed by
496 * a congested BDI 496 * a congested BDI
497 */ 497 */
498 ZONE_TAIL_LRU_DIRTY, /* reclaim scanning has recently found
499 * many dirty file pages at the tail
500 * of the LRU.
501 */
498} zone_flags_t; 502} zone_flags_t;
499 503
500static inline void zone_set_flag(struct zone *zone, zone_flags_t flag) 504static inline void zone_set_flag(struct zone *zone, zone_flags_t flag)
@@ -517,6 +521,11 @@ static inline int zone_is_reclaim_congested(const struct zone *zone)
517 return test_bit(ZONE_CONGESTED, &zone->flags); 521 return test_bit(ZONE_CONGESTED, &zone->flags);
518} 522}
519 523
524static inline int zone_is_reclaim_dirty(const struct zone *zone)
525{
526 return test_bit(ZONE_TAIL_LRU_DIRTY, &zone->flags);
527}
528
520static inline int zone_is_reclaim_locked(const struct zone *zone) 529static inline int zone_is_reclaim_locked(const struct zone *zone)
521{ 530{
522 return test_bit(ZONE_RECLAIM_LOCKED, &zone->flags); 531 return test_bit(ZONE_RECLAIM_LOCKED, &zone->flags);