The patch titled Subject: mm-page_alloc-count-cma-pages-per-zone-and-print-them-in-proc-zoneinfo-v3 has been removed from the -mm tree. Its filename was mm-page_alloc-count-cma-pages-per-zone-and-print-them-in-proc-zoneinfo-v3.patch This patch was dropped because it was folded into mm-page_alloc-count-cma-pages-per-zone-and-print-them-in-proc-zoneinfo.patch ------------------------------------------------------ From: David Hildenbrand <david@xxxxxxxxxx> Subject: mm-page_alloc-count-cma-pages-per-zone-and-print-them-in-proc-zoneinfo-v3 - Print even without CONFIG_CMA. Use zone_cma_pages(). - Adjust patch description - Dropped Oscar's RB due to the changes Link: https://lkml.kernel.org/r/20210129113451.22085-1-david@xxxxxxxxxx Signed-off-by: David Hildenbrand <david@xxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: "Peter Zijlstra (Intel)" <peterz@xxxxxxxxxxxxx> Cc: Mike Rapoport <rppt@xxxxxxxxxx> Cc: Oscar Salvador <osalvador@xxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Wei Yang <richard.weiyang@xxxxxxxxxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Zi Yan <ziy@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mmzone.h | 9 +++++++++ mm/vmstat.c | 11 ++++------- 2 files changed, 13 insertions(+), 7 deletions(-) --- a/include/linux/mmzone.h~mm-page_alloc-count-cma-pages-per-zone-and-print-them-in-proc-zoneinfo-v3 +++ a/include/linux/mmzone.h @@ -630,6 +630,15 @@ static inline unsigned long zone_managed return (unsigned long)atomic_long_read(&zone->managed_pages); } +static inline unsigned long zone_cma_pages(struct zone *zone) +{ +#ifdef CONFIG_CMA + return zone->cma_pages; +#else + return 0; +#endif +} + static inline unsigned long zone_end_pfn(const struct zone *zone) { return zone->zone_start_pfn + zone->spanned_pages; --- a/mm/vmstat.c~mm-page_alloc-count-cma-pages-per-zone-and-print-them-in-proc-zoneinfo-v3 +++ a/mm/vmstat.c @@ -1637,19 +1637,16 @@ static void zoneinfo_show_print(struct s "\n high %lu" "\n spanned %lu" "\n present %lu" - "\n managed %lu", + "\n managed %lu" + "\n cma %lu", zone_page_state(zone, NR_FREE_PAGES), min_wmark_pages(zone), low_wmark_pages(zone), high_wmark_pages(zone), zone->spanned_pages, zone->present_pages, - zone_managed_pages(zone)); -#ifdef CONFIG_CMA - seq_printf(m, - "\n cma %lu", - zone->cma_pages); -#endif + zone_managed_pages(zone), + zone_cma_pages(zone)); seq_printf(m, "\n protection: (%ld", _ Patches currently in -mm which might be from david@xxxxxxxxxx are mm-cma-expose-all-pages-to-the-buddy-if-activation-of-an-area-fails.patch mm-page_alloc-count-cma-pages-per-zone-and-print-them-in-proc-zoneinfo.patch mm-memory_hotplug-memhp_merge_resource-mhp_merge_resource.patch drivers-base-memory-dont-store-phys_device-in-memory-blocks.patch documentation-sysfs-memory-clarify-some-memory-block-device-properties.patch virtio-mem-check-against-mhp_get_pluggable_range-which-memory-we-can-hotplug.patch