[PATCH v1 0/2] mm/cma: better error handling and count pages per zone

David Hildenbrand
2021-01-27T10:22:47Z

Two improvements for CMA:
1. When activation of a CMA area fails, hand back all pages to the buddy
2. Count CMA pages per zone and print them in /proc/zoneinfo

David Hildenbrand (2):
mm/cma: expose all pages to the buddy if activation of an area fails
mm/page_alloc: count CMA pages per zone and print them in
/proc/zoneinfo

include/linux/mmzone.h | 4 ++++
mm/cma.c | 43 +++++++++++++++++++++---------------------
mm/page_alloc.c | 1 +
mm/vmstat.c | 6 ++++--
4 files changed, 30 insertions(+), 24 deletions(-)

--
2.29.2