mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
mm: remove munlock_vma_page()
All callers now have a folio and can call munlock_vma_folio(). Update the documentation to refer to munlock_vma_folio(). Link: https://lkml.kernel.org/r/20230116192827.2146732-4-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
7efecffb8e
commit
672aa27d0b
12
mm/rmap.c
12
mm/rmap.c
@@ -1431,14 +1431,14 @@ void page_remove_rmap(struct page *page, struct vm_area_struct *vma,
|
||||
}
|
||||
|
||||
/*
|
||||
* It would be tidy to reset PageAnon mapping when fully unmapped,
|
||||
* but that might overwrite a racing page_add_anon_rmap
|
||||
* which increments mapcount after us but sets mapping
|
||||
* before us: so leave the reset to free_pages_prepare,
|
||||
* and remember that it's only reliable while mapped.
|
||||
* It would be tidy to reset folio_test_anon mapping when fully
|
||||
* unmapped, but that might overwrite a racing page_add_anon_rmap
|
||||
* which increments mapcount after us but sets mapping before us:
|
||||
* so leave the reset to free_pages_prepare, and remember that
|
||||
* it's only reliable while mapped.
|
||||
*/
|
||||
|
||||
munlock_vma_page(page, vma, compound);
|
||||
munlock_vma_folio(folio, vma, compound);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user