linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix parameter passed to page_mapcount_is_type()
@ 2025-03-21  5:31 Gavin Shan
  2025-03-21  5:31 ` [PATCH 1/2] mm: " Gavin Shan
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Gavin Shan @ 2025-03-21  5:31 UTC (permalink / raw)
  To: linux-mm
  Cc: linux-kernel, akpm, willy, david, vbabka, osalvador, gehao, shan.gavin

Found by code inspection. There are two places where the parameter
passed to page_mapcount_is_type() is (page->__mapcount), which is
correct since it should be one more than the value, as explained in
the comments to page_mapcount_is_type(): (a) page_has_type() in
page-flags.h (b) __dump_folio() in mm/debug.c

PATCH[1] fixes the parameter for (a)
PATCH[2] fixes the parameter for (b)

Gavin Shan (2):
  mm: Fix parameter passed to page_mapcount_is_type()
  mm/debug: Fix parameter passed to page_mapcount_is_type()

 include/linux/page-flags.h | 2 +-
 mm/debug.c                 | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.48.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-03-21 12:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-21  5:31 [PATCH 0/2] Fix parameter passed to page_mapcount_is_type() Gavin Shan
2025-03-21  5:31 ` [PATCH 1/2] mm: " Gavin Shan
2025-03-21 10:13   ` David Hildenbrand
2025-03-21 11:26     ` Gavin Shan
2025-03-21 11:28       ` David Hildenbrand
2025-03-21  5:31 ` [PATCH 2/2] mm/debug: " Gavin Shan
2025-03-21 10:14   ` David Hildenbrand
2025-03-21  5:34 ` [PATCH 0/2] " Gavin Shan
2025-03-21  9:23 ` Vlastimil Babka
2025-03-21 10:11   ` David Hildenbrand
2025-03-21 11:25     ` Gavin Shan
2025-03-21 11:27       ` David Hildenbrand
2025-03-21 11:33       ` Vlastimil Babka
2025-03-21 12:07         ` Gavin Shan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox