aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mlock.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <[email protected]>2025-07-02 10:49:24 +0000
committerAndrew Morton <[email protected]>2025-07-20 01:59:45 +0000
commit233e28e2a76e6ffcbe33ee7813f98536fe0690b5 (patch)
tree1224e338bc5502726a639df4cb6f75a83674bb97 /mm/mlock.c
parentmm: convert FPB_IGNORE_* into FPB_RESPECT_* (diff)
downloadkernel-233e28e2a76e6ffcbe33ee7813f98536fe0690b5.tar.gz
kernel-233e28e2a76e6ffcbe33ee7813f98536fe0690b5.zip
mm: smaller folio_pte_batch() improvements
Let's clean up a bit: (1) No need for start_ptep vs. ptep anymore, we can simply use ptep. (2) Let's switch to "unsigned int" for everything. Negative values do not make sense. (3) We can simplify the code by leaving the pte unchanged after the pte_same() check. (4) Clarify that we should never exceed a single VMA; it indicates a problem in the caller. No functional change intended. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: David Hildenbrand <[email protected]> Reviewed-by: Lance Yang <[email protected]> Reviewed-by: Lorenzo Stoakes <[email protected]> Reviewed-by: Oscar Salvador <[email protected]> Reviewed-by: Dev Jain <[email protected]> Cc: Alistair Popple <[email protected]> Cc: Byungchul Park <[email protected]> Cc: Gregory Price <[email protected]> Cc: "Huang, Ying" <[email protected]> Cc: Jann Horn <[email protected]> Cc: Joshua Hahn <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Mathew Brost <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Rakie Kim <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Zi Yan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions