diff options
author | Matthew Wilcox (Oracle) <[email protected]> | 2023-08-18 21:23:35 +0100 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-08-24 16:20:30 -0700 |
commit | 1d024e7a8dabcc3c84d77532a88c774c32cf8245 (patch) | |
tree | 054d0ee873c69836f7dae835b19d11006e1e27f6 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 40d49a3c9e4a0e5cf7a6fcebc8d4d7d63d1f3f1b (diff) |
mm: remove enum page_entry_size
Remove the unnecessary encoding of page order into an enum and pass the
page order directly. That lets us get rid of pe_order().
The switch constructs have to be changed to if/else constructs to prevent
GCC from warning on builds with 3-level page tables where PMD_ORDER and
PUD_ORDER have the same value.
If you are looking at this commit because your driver stopped compiling,
look at the previous commit as well and audit your driver to be sure it
doesn't depend on mmap_lock being held in its ->huge_fault method.
[[email protected]: use "order %u" to match the (non dev_t) style]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions