diff options
author | Daniel Axtens <[email protected]> | 2019-12-17 20:51:41 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-12-17 20:59:59 -0800 |
commit | be1db4753ee6a0db80a900df9dbbf6ad2acc4bd1 (patch) | |
tree | 02d741cc1f8bd9f5f3bd29aef27c7ad62ea8eba4 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | d98c9e83b5e7ca78175df1b13ac4a6d460d3962d (diff) |
mm/memory.c: add apply_to_existing_page_range() helper
apply_to_page_range() takes an address range, and if any parts of it are
not covered by the existing page table hierarchy, it allocates memory to
fill them in.
In some use cases, this is not what we want - we want to be able to
operate exclusively on PTEs that are already in the tables.
Add apply_to_existing_page_range() for this. Adjust the walker
functions for apply_to_page_range to take 'create', which switches them
between the old and new modes.
This will be used in KASAN vmalloc.
[[email protected]: reduce code duplication]
[[email protected]: s/apply_to_existing_pages/apply_to_existing_page_range/]
[[email protected]: initialize __apply_to_page_range::err]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Daniel Axtens <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Uladzislau Rezki (Sony) <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Daniel Axtens <[email protected]>
Cc: Qian Cai <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions