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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 9011505e740d..4c4522a51a3b 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -351,6 +351,12 @@ static inline void zone_set_flag(struct zone *zone, zone_flags_t flag)
351{ 351{
352 set_bit(flag, &zone->flags); 352 set_bit(flag, &zone->flags);
353} 353}
354
355static inline int zone_test_and_set_flag(struct zone *zone, zone_flags_t flag)
356{
357 return test_and_set_bit(flag, &zone->flags);
358}
359
354static inline void zone_clear_flag(struct zone *zone, zone_flags_t flag) 360static inline void zone_clear_flag(struct zone *zone, zone_flags_t flag)
355{ 361{
356 clear_bit(flag, &zone->flags); 362 clear_bit(flag, &zone->flags);
@@ -360,10 +366,12 @@ static inline int zone_is_all_unreclaimable(const struct zone *zone)
360{ 366{
361 return test_bit(ZONE_ALL_UNRECLAIMABLE, &zone->flags); 367 return test_bit(ZONE_ALL_UNRECLAIMABLE, &zone->flags);
362} 368}
369
363static inline int zone_is_reclaim_locked(const struct zone *zone) 370static inline int zone_is_reclaim_locked(const struct zone *zone)
364{ 371{
365 return test_bit(ZONE_RECLAIM_LOCKED, &zone->flags); 372 return test_bit(ZONE_RECLAIM_LOCKED, &zone->flags);
366} 373}
374
367static inline int zone_is_oom_locked(const struct zone *zone) 375static inline int zone_is_oom_locked(const struct zone *zone)
368{ 376{
369 return test_bit(ZONE_OOM_LOCKED, &zone->flags); 377 return test_bit(ZONE_OOM_LOCKED, &zone->flags);