diff options
| author | Anthony Yznaga <[email protected]> | 2018-12-28 00:37:27 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-12-28 12:11:50 -0800 |
| commit | b6fb87b8e3ff1ef6bcf68470f24a97c984554d5a (patch) | |
| tree | f4907a91dafc0fdb029a0a93341c5cb9cb14e5e3 /tools/perf/scripts/python/stackcollapse.py | |
| parent | bbe5d9939e81277bfbfb8fdba68374024b16d5fa (diff) | |
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/[email protected]
Fixes: 7f1d23e60718 ("tools/vm/page-types.c: include shared map counts")
Signed-off-by: Anthony Yznaga <[email protected]>
Reviewed-by: Naoya Horiguchi <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions