diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-12-13 21:58:31 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 11:58:29 -0800 |
commit | b99b4e0d9d7f29b428bacd7a61188b2abf340c1e (patch) | |
tree | 60c002e9731a6a9a911f5783d7b70e7822ce5f59 /mm/zswap.c | |
parent | 96c7b0b42239e7b8987b2664b458dc74e825f760 (diff) |
mm: pass a folio to __swap_writepage()
Both callers now have a folio, so pass that in instead of the page.
Removes a few hidden calls to compound_head().
Link: https://lkml.kernel.org/r/20231213215842.671461-3-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/zswap.c')
-rw-r--r-- | mm/zswap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zswap.c b/mm/zswap.c index 6d9ee2a5334a..f760801a3ea8 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -1446,7 +1446,7 @@ static int zswap_writeback_entry(struct zswap_entry *entry, folio_set_reclaim(folio); /* start writeback */ - __swap_writepage(&folio->page, &wbc); + __swap_writepage(folio, &wbc); folio_put(folio); return 0; |