diff options
| author | David Hildenbrand <[email protected]> | 2024-04-09 19:22:55 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-05-06 00:53:30 +0000 |
| commit | 607065804b3b2943d8f99da88744b389a8226dc1 (patch) | |
| tree | 28db07c587c9f3a697c68a4f215a93f2b0f76873 /mm/filemap.c | |
| parent | mm/migrate: use folio_likely_mapped_shared() in add_page_for_migration() (diff) | |
| download | kernel-607065804b3b2943d8f99da88744b389a8226dc1.tar.gz kernel-607065804b3b2943d8f99da88744b389a8226dc1.zip | |
sh/mm/cache: use folio_mapped() in copy_from_user_page()
We want to limit the use of page_mapcount() to the places where it is
absolutely necessary.
We're already using folio_mapped in copy_user_highpage() and
copy_to_user_page() for a similar purpose so ... let's also simply use it
for copy_from_user_page().
There is no change for small folios. Likely we won't stumble over many
large folios on sh in that code either way.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Cc: Chris Zankel <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: John Paul Adrian Glaubitz <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Miaohe Lin <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Richard Chang <[email protected]>
Cc: Rich Felker <[email protected]>
Cc: Ryan Roberts <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Yin Fengwei <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions
