diff options
| author | Baolin Wang <[email protected]> | 2022-06-20 19:47:15 +0800 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-07-03 18:08:49 -0700 |
| commit | 0506c31d0a8443a9f55eb69d81db426f2eb3296e (patch) | |
| tree | 625213fe266ba3572e6e09ed3855c7153e416803 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | f7cc67ae7f6221abe57857bd6efd21e06a05bd45 (diff) | |
mm: rmap: simplify the hugetlb handling when unmapping or migration
According to previous discussion [1], there are so many levels of
indenting to handle the hugetlb case when unmapping or migration. We can
combine folio_test_anon() and huge_pmd_unshare() to save one level of
indenting, by adding a local variable and moving the VM_BUG_ON() a little
forward.
No intended functional changes in this patch.
[1] https://lore.kernel.org/all/[email protected]/
Link: https://lkml.kernel.org/r/28414b1b96f095e838c1e548074f8e0fc70d78cf.1655724713.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions