summaryrefslogtreecommitdiff
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-17 20:50:19 +0300
committerakpm <akpm@linux-foundation.org>2022-07-04 04:08:48 +0300
commit75fa68a5d89871a35246aa2759c95d6dfaf1b582 (patch)
tree0bc7de8ee57ddd75bedc2e1890d2e6498f1c3885 /mm/swapfile.c
parentb98c359f1d921deae04bb5dbbbbbb9d8705b7c4c (diff)
downloadlinux-75fa68a5d89871a35246aa2759c95d6dfaf1b582.tar.xz
mm/swap: convert delete_from_swap_cache() to take a folio
All but one caller already has a folio, so convert it to use a folio. Link: https://lkml.kernel.org/r/20220617175020.717127-22-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/swapfile.c')
-rw-r--r--mm/swapfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index af6e83911ad2..1fdccd2f1422 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -1617,7 +1617,7 @@ int try_to_free_swap(struct page *page)
if (pm_suspended_storage())
return 0;
- delete_from_swap_cache(&folio->page);
+ delete_from_swap_cache(folio);
folio_set_dirty(folio);
return 1;
}