• David Hildenbrand's avatar
    mm/debug: print only page mapcount (excluding folio entire mapcount) in __dump_folio() · 7441d349
    David Hildenbrand authored
    Let's simplify and only print the page mapcount: we already print the
    large folio mapcount and the entire folio mapcount for large folios
    separately; that should be sufficient to figure out what's happening.
    
    While at it, print the page mapcount also if it had an underflow,
    filtering out only typed pages.
    
    Link: https://lkml.kernel.org/r/20240409192301.907377-18-david@redhat.comSigned-off-by: default avatarDavid Hildenbrand <david@redhat.com>
    Cc: Chris Zankel <chris@zankel.net>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
    Cc: Max Filippov <jcmvbkbc@gmail.com>
    Cc: Miaohe Lin <linmiaohe@huawei.com>
    Cc: Muchun Song <muchun.song@linux.dev>
    Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
    Cc: Peter Xu <peterx@redhat.com>
    Cc: Richard Chang <richardycc@google.com>
    Cc: Rich Felker <dalias@libc.org>
    Cc: Ryan Roberts <ryan.roberts@arm.com>
    Cc: Yang Shi <shy828301@gmail.com>
    Cc: Yin Fengwei <fengwei.yin@intel.com>
    Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
    Cc: Zi Yan <ziy@nvidia.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    7441d349
debug.c 7.06 KB