From: chenqiwu <chenqiwu@xxxxxxxxxx> Use free_area_empty() API to replace list_empty() for better code readability. Signed-off-by: chenqiwu <chenqiwu@xxxxxxxxxx> --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 79e950d..6ae7142 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3534,7 +3534,7 @@ bool __zone_watermark_ok(struct zone *z, unsigned int order, unsigned long mark, } #endif if (alloc_harder && - !list_empty(&area->free_list[MIGRATE_HIGHATOMIC])) + !free_area_empty(area, MIGRATE_HIGHATOMIC)) return true; } return false; -- 1.9.1