diff options
| author | Matthew Wilcox <[email protected]> | 2018-01-31 16:17:36 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-01-31 17:18:37 -0800 |
| commit | 977fbdcd5986c9ff700bf276644d2b1973a53348 (patch) | |
| tree | 312bd6dd7f6a528759dad4b2da27eaf9ff339b12 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | a365ac09d334389bc69841c9d153f03fa2442f1c (diff) | |
mm: add unmap_mapping_pages()
Several users of unmap_mapping_range() would prefer to express their
range in pages rather than bytes. Unfortuately, on a 32-bit kernel, you
have to remember to cast your page number to a 64-bit type before
shifting it, and four places in the current tree didn't remember to do
that. That's a sign of a bad interface.
Conveniently, unmap_mapping_range() actually converts from bytes into
pages, so hoist the guts of unmap_mapping_range() into a new function
unmap_mapping_pages() and convert the callers which want to use pages.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox <[email protected]>
Reported-by: "zhangyi (F)" <[email protected]>
Reviewed-by: Ross Zwisler <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions