diff options
author | David Hildenbrand <[email protected]> | 2023-12-20 23:44:39 +0100 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-12-29 11:58:50 -0800 |
commit | 91b2978a348073db0e47b380fa66c865eb25f3d8 (patch) | |
tree | b7bfa809618da2b7818101b1ad0934f4a19cca0e /net/lapb/lapb_out.c | |
parent | 8bd5130070fbf2247a97c5361427a810522ac98a (diff) |
mm/huge_memory: batch rmap operations in __split_huge_pmd_locked()
Let's use folio_add_anon_rmap_ptes(), batching the rmap operations.
While at it, use more folio operations (but only in the code branch we're
touching), use VM_WARN_ON_FOLIO(), and pass RMAP_EXCLUSIVE instead of
manually setting PageAnonExclusive.
We should never see non-anon pages on that branch: otherwise, the existing
page_add_anon_rmap() call would have been flawed already.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Reviewed-by: Yin Fengwei <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Ryan Roberts <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions