summaryrefslogtreecommitdiffstats
path: root/tools/kvm
diff options
context:
space:
mode:
authorAnthony Yznaga2018-12-28 09:37:27 +0100
committerLinus Torvalds2018-12-28 21:11:50 +0100
commitb6fb87b8e3ff1ef6bcf68470f24a97c984554d5a (patch)
treef4907a91dafc0fdb029a0a93341c5cb9cb14e5e3 /tools/kvm
parentmm/page_alloc.c: drop uneeded __meminit and __meminitdata (diff)
downloadkernel-qcow2-linux-b6fb87b8e3ff1ef6bcf68470f24a97c984554d5a.tar.gz
kernel-qcow2-linux-b6fb87b8e3ff1ef6bcf68470f24a97c984554d5a.tar.xz
kernel-qcow2-linux-b6fb87b8e3ff1ef6bcf68470f24a97c984554d5a.zip
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@oracle.com Fixes: 7f1d23e60718 ("tools/vm/page-types.c: include shared map counts") Signed-off-by: Anthony Yznaga <anthony.yznaga@oracle.com> Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Matthew Wilcox <willy@infradead.org> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/kvm')
0 files changed, 0 insertions, 0 deletions