aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorAndrea Arcangeli <[email protected]>2011-10-31 17:08:22 -0700
committerLinus Torvalds <[email protected]>2011-10-31 17:30:47 -0700
commitebed48460be5abd86d9a24fa7c66378e58109f30 (patch)
tree721d935953c58ac014e3d00ea1092ab480ea3356 /tools/perf/scripts/python/check-perf-trace.py
parent6661672053aee709d93f5dbd7887c789364c11d4 (diff)
mremap: check for overflow using deltas
Using "- 1" relies on the old_end to be page aligned and PAGE_SIZE > 1, those are reasonable requirements but the check remains obscure and it looks more like an off by one error than an overflow check. This I feel will improve readability. Signed-off-by: Andrea Arcangeli <[email protected]> Acked-by: Johannes Weiner <[email protected]> Acked-by: Mel Gorman <[email protected]> Acked-by: Rik van Riel <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions