aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 67f523c4711a..04bf1ad50144 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3041,9 +3041,6 @@ bool __zone_watermark_ok(struct zone *z, unsigned int order, unsigned long mark,
3041 if (!area->nr_free) 3041 if (!area->nr_free)
3042 continue; 3042 continue;
3043 3043
3044 if (alloc_harder)
3045 return true;
3046
3047 for (mt = 0; mt < MIGRATE_PCPTYPES; mt++) { 3044 for (mt = 0; mt < MIGRATE_PCPTYPES; mt++) {
3048 if (!list_empty(&area->free_list[mt])) 3045 if (!list_empty(&area->free_list[mt]))
3049 return true; 3046 return true;
@@ -3055,6 +3052,9 @@ bool __zone_watermark_ok(struct zone *z, unsigned int order, unsigned long mark,
3055 return true; 3052 return true;
3056 } 3053 }
3057#endif 3054#endif
3055 if (alloc_harder &&
3056 !list_empty(&area->free_list[MIGRATE_HIGHATOMIC]))
3057 return true;
3058 } 3058 }
3059 return false; 3059 return false;
3060} 3060}