aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorAndrea Arcangeli <[email protected]>2012-09-28 14:35:31 +0200
committerLinus Torvalds <[email protected]>2012-09-28 08:38:09 -0700
commit99a1300e1d84709f419182bb5189760e78234882 (patch)
tree1d3cc49d4015fbb2b3d5bbeed313d30d7756526b /tools/perf/util/trace-event-scripting.c
parent63994137eb53bb0fc42ad180c0ce509d3eb3bdc9 (diff)
thp: avoid VM_BUG_ON page_count(page) false positives in __collapse_huge_page_copy
Speculative cache pagecache lookups can elevate the refcount from under us, so avoid the false positive. If the refcount is < 2 we'll be notified by a VM_BUG_ON in put_page_testzero as there are two put_page(src_page) in a row before returning from this function. Signed-off-by: Andrea Arcangeli <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Reviewed-by: Johannes Weiner <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Petr Holasek <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions