diff options
author | Linus Torvalds <[email protected]> | 2019-04-11 10:06:20 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-04-14 10:00:04 -0700 |
commit | f958d7b528b1b40c44cfda5eabe2d82760d868c3 (patch) | |
tree | 4064635cb1fdb10668227084cb68c2c4be2fb0f8 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1c163f4c7b3f621efff9b28a47abb36f7378d783 (diff) |
mm: make page ref count overflow check tighter and more explicit
We have a VM_BUG_ON() to check that the page reference count doesn't
underflow (or get close to overflow) by checking the sign of the count.
That's all fine, but we actually want to allow people to use a "get page
ref unless it's already very high" helper function, and we want that one
to use the sign of the page ref (without triggering this VM_BUG_ON).
Change the VM_BUG_ON to only check for small underflows (or _very_ close
to overflowing), and ignore overflows which have strayed into negative
territory.
Acked-by: Matthew Wilcox <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions