mm: kill frontswap
authorJohannes Weiner <hannes@cmpxchg.org>
Mon, 17 Jul 2023 16:02:27 +0000 (12:02 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:26 +0000 (13:37 -0700)
commit42c06a0e8ebe95b81e5fb41c6556ff22d9255b0c
tree2841a6f977f5eb75f5acda763fa4b0b7166508d6
parentb8cf32dc6e8c75b712cbf638e0fd210101c22f17
mm: kill frontswap

The only user of frontswap is zswap, and has been for a long time.  Have
swap call into zswap directly and remove the indirection.

[hannes@cmpxchg.org: remove obsolete comment, per Yosry]
Link: https://lkml.kernel.org/r/20230719142832.GA932528@cmpxchg.org
[fengwei.yin@intel.com: don't warn if none swapcache folio is passed to zswap_load]
Link: https://lkml.kernel.org/r/20230810095652.3905184-1-fengwei.yin@intel.com
Link: https://lkml.kernel.org/r/20230717160227.GA867137@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Acked-by: Yosry Ahmed <yosryahmed@google.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Cc: Domenico Cerasuolo <cerasuolodomenico@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
17 files changed:
Documentation/admin-guide/mm/zswap.rst
Documentation/mm/frontswap.rst [deleted file]
Documentation/mm/index.rst
Documentation/translations/zh_CN/mm/frontswap.rst [deleted file]
Documentation/translations/zh_CN/mm/index.rst
MAINTAINERS
fs/proc/meminfo.c
include/linux/frontswap.h [deleted file]
include/linux/swap.h
include/linux/swapfile.h
include/linux/zswap.h [new file with mode: 0644]
mm/Kconfig
mm/Makefile
mm/frontswap.c [deleted file]
mm/page_io.c
mm/swapfile.c
mm/zswap.c