summaryrefslogtreecommitdiffstats
path: root/mm/zswap.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-08-11 16:17:41 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-09-12 05:25:50 +0200
commitcf1e3fe4975c4bd6a6a14428700c5a2c36528a7b (patch)
tree82d3940565716b41d8ecee29267baedd39d70734 /mm/zswap.c
parentzsmalloc: remove unnecessary size_class NULL check (diff)
downloadlinux-cf1e3fe4975c4bd6a6a14428700c5a2c36528a7b.tar.xz
linux-cf1e3fe4975c4bd6a6a14428700c5a2c36528a7b.zip
mm/swap: remove the end_write_func argument to __swap_writepage
The argument is always set to end_swap_bio_write, so remove the argument and mark end_swap_bio_write static. Link: https://lkml.kernel.org/r/20220811141741.660214-1-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Seth Jennings <sjenning@redhat.com> Cc: Dan Streetman <ddstreet@ieee.org> Cc: Vitaly Wool <vitaly.wool@konsulko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/zswap.c')
-rw-r--r--mm/zswap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zswap.c b/mm/zswap.c
index 104835b379ec..2d48fd59cc7a 100644
--- a/mm/zswap.c
+++ b/mm/zswap.c
@@ -1026,7 +1026,7 @@ static int zswap_writeback_entry(struct zpool *pool, unsigned long handle)
SetPageReclaim(page);
/* start writeback */
- __swap_writepage(page, &wbc, end_swap_bio_write);
+ __swap_writepage(page, &wbc);
put_page(page);
zswap_written_back_pages++;