aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorNaoya Horiguchi <[email protected]>2014-02-10 14:25:50 -0800
committerLinus Torvalds <[email protected]>2014-02-10 16:01:43 -0800
commit8d547ff4ac5927245e0833ac18528f939da0ee0e (patch)
treedf35c19621783cd0c0c8735aab27eed555e48441 /tools/perf/util/trace-event-scripting.c
parentfb37bb04d6c8d6c44e61d9da189dcfa6aa0f135e (diff)
mm/memory-failure.c: move refcount only in !MF_COUNT_INCREASED
mce-test detected a test failure when injecting error to a thp tail page. This is because we take page refcount of the tail page in madvise_hwpoison() while the fix in commit a3e0f9e47d5e ("mm/memory-failure.c: transfer page count from head page to tail page after split thp") assumes that we always take refcount on the head page. When a real memory error happens we take refcount on the head page where memory_failure() is called without MF_COUNT_INCREASED set, so it seems to me that testing memory error on thp tail page using madvise makes little sense. This patch cancels moving refcount in !MF_COUNT_INCREASED for valid testing. [[email protected]: s/&&/&/] Signed-off-by: Naoya Horiguchi <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Wanpeng Li <[email protected]> Cc: Chen Gong <[email protected]> Cc: <[email protected]> [3.9+: a3e0f9e47d5e] Signed-off-by: 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