aboutsummaryrefslogtreecommitdiffstats
path: root/mm/sparse-vmemmap.c
diff options
context:
space:
mode:
authorPeter Xu <[email protected]>2021-11-05 20:38:34 +0000
committerLinus Torvalds <[email protected]>2021-11-06 20:30:36 +0000
commit91b61ef333cf43f96b3522a086c9ac925763d6e5 (patch)
tree0096b9d0c687c278b9a4f85bcd7ddc5d6eee829d /mm/sparse-vmemmap.c
parentmm: drop first_index/last_index in zap_details (diff)
downloadkernel-91b61ef333cf43f96b3522a086c9ac925763d6e5.tar.gz
kernel-91b61ef333cf43f96b3522a086c9ac925763d6e5.zip
mm: add zap_skip_check_mapping() helper
Use the helper for the checks. Rename "check_mapping" into "zap_mapping" because "check_mapping" looks like a bool but in fact it stores the mapping itself. When it's set, we check the mapping (it must be non-NULL). When it's cleared we skip the check, which works like the old way. Move the duplicated comments to the helper too. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Reviewed-by: Alistair Popple <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Axel Rasmussen <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Jerome Glisse <[email protected]> Cc: "Kirill A . Shutemov" <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Miaohe Lin <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Yang Shi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/sparse-vmemmap.c')
0 files changed, 0 insertions, 0 deletions