Re: [PATCH v2] /proc/kpagecount: return 0 for special pages that are never mapped

2018-12-10 Thread Naoya Horiguchi
On Mon, Dec 10, 2018 at 02:35:13PM -0800, Anthony Yznaga wrote: > Certain pages that are never mapped to userspace have a type > indicated in the page_type field of their struct pages (e.g. PG_buddy). > page_type overlaps with _mapcount so set the count to 0 and avoid > calling page_mapcount() for

[PATCH v2] /proc/kpagecount: return 0 for special pages that are never mapped

2018-12-10 Thread Anthony Yznaga
Certain pages that are never mapped to userspace have a type indicated in the page_type field of their struct pages (e.g. PG_buddy). page_type overlaps with _mapcount so set the count to 0 and avoid calling page_mapcount() for these pages. Signed-off-by: Anthony Yznaga Acked-by: Matthew Wilcox