]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm: introduce page_mapcount_is_type()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 21 Aug 2024 17:39:10 +0000 (18:39 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Sep 2024 04:15:42 +0000 (21:15 -0700)
commite880034cf7182aa35962bd30dfc9fa60476d56a4
tree55148be6aa56f0c4bf523dc7c6df26135454499c
parente27ad6560e4b5993315b56d6884ca5a4652468f4
mm: introduce page_mapcount_is_type()

Resolve the awkward "and add one to this opaque constant" test into a
self-documenting inline function.

Link: https://lkml.kernel.org/r/20240821173914.2270383-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/internal.h
include/linux/mm.h
include/linux/page-flags.h