diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-04-24 21:19:10 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-05-06 02:53:49 +0200 |
commit | 9cbe4954c6d93e6a72680fe634913c0d056fd932 (patch) | |
tree | de67d0405b02b472dc1c8952ae45f9761247d613 /mm/swap.c | |
parent | mm: remove page_ref_sub_return() (diff) | |
download | linux-9cbe4954c6d93e6a72680fe634913c0d056fd932.tar.xz linux-9cbe4954c6d93e6a72680fe634913c0d056fd932.zip |
gup: use folios for gup_devmap
Use try_grab_folio() instead of try_grab_page() so we get the folio back
that we calculated, and then use folio_set_referenced() instead of
SetPageReferenced(). Correspondingly, use gup_put_folio() to put any
unneeded references.
Link: https://lkml.kernel.org/r/20240424191914.361554-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions