diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 8 |
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 | |||
355 | static 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 | |||
354 | static inline void zone_clear_flag(struct zone *zone, zone_flags_t flag) | 360 | static 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 | |||
363 | static inline int zone_is_reclaim_locked(const struct zone *zone) | 370 | static 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 | |||
367 | static inline int zone_is_oom_locked(const struct zone *zone) | 375 | static 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); |