The patch titled Subject: tools/vm/page-types.c: fix "kpagecount returned fewer pages than expected" failures has been added to the -mm tree. Its filename is tools-vm-page-typesc-fix-kpagecount-returned-fewer-pages-than-expected-failures.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/tools-vm-page-typesc-fix-kpagecount-returned-fewer-pages-than-expected-failures.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/tools-vm-page-typesc-fix-kpagecount-returned-fewer-pages-than-expected-failures.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Anthony Yznaga <anthony.yznaga@xxxxxxxxxx> Subject: tools/vm/page-types.c: fix "kpagecount returned fewer pages than expected" failures Because kpagecount_read() fakes success if map counts are not being collected, clamp the page count passed to it by walk_pfn() to the pages value returned by the preceding call to kpageflags_read(). Link: http://lkml.kernel.org/r/1543962269-26116-1-git-send-email-anthony.yznaga@xxxxxxxxxx Fixes: 7f1d23e60718 ("tools/vm/page-types.c: include shared map counts") Signed-off-by: Anthony Yznaga <anthony.yznaga@xxxxxxxxxx> Cc: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/vm/page-types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/vm/page-types.c~tools-vm-page-typesc-fix-kpagecount-returned-fewer-pages-than-expected-failures +++ a/tools/vm/page-types.c @@ -701,7 +701,7 @@ static void walk_pfn(unsigned long voffs if (kpagecgroup_read(cgi, index, pages) != pages) fatal("kpagecgroup returned fewer pages than expected"); - if (kpagecount_read(cnt, index, batch) != pages) + if (kpagecount_read(cnt, index, pages) != pages) fatal("kpagecount returned fewer pages than expected"); for (i = 0; i < pages; i++) _ Patches currently in -mm which might be from anthony.yznaga@xxxxxxxxxx are tools-vm-page-typesc-fix-kpagecount-returned-fewer-pages-than-expected-failures.patch