]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc.c: use free_area_empty() instead of open-coding
authorchenqiwu <chenqiwu@xiaomi.com>
Thu, 2 Apr 2020 04:09:50 +0000 (21:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Apr 2020 16:35:31 +0000 (09:35 -0700)
commit8e27076a04ab18fb2d3a7171460e81d0b18d6ba9
treee6cdc22221850a37a82308e7626f31dfcd802120
parent3aa1f9952e44c6c5b80580a1153d44e31aff0205
mm/page_alloc.c: use free_area_empty() instead of open-coding

Use free_area_empty() API to replace list_empty() for better code
readability.

Signed-off-by: chenqiwu <chenqiwu@xiaomi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: http://lkml.kernel.org/r/1583674354-7713-1-git-send-email-qiwuchen55@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c