Skip to content

Commit 0a4ee51

Browse files
Christoph Hellwigtorvalds
authored andcommitted
mm: remove cleancache
Patch series "remove Xen tmem leftovers". Since the removal of the Xen tmem driver in 2019, the cleancache hooks are entirely unused, as are large parts of frontswap. This series against linux-next (with the folio changes included) removes cleancaches, and cuts down frontswap to the bits actually used by zswap. This patch (of 13): The cleancache subsystem is unused since the removal of Xen tmem driver in commit 814bbf4 ("xen: remove tmem driver"). [[email protected]: remove now-unreachable code] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Seth Jennings <[email protected]> Cc: Dan Streetman <[email protected]> Cc: Vitaly Wool <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent e940066 commit 0a4ee51

37 files changed

+4
-873
lines changed

Documentation/vm/cleancache.rst

Lines changed: 0 additions & 296 deletions
This file was deleted.

Documentation/vm/frontswap.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ Frontswap provides a "transcendent memory" interface for swap pages.
88
In some environments, dramatic performance savings may be obtained because
99
swapped pages are saved in RAM (or a RAM-like device) instead of a swap disk.
1010

11-
(Note, frontswap -- and :ref:`cleancache` (merged at 3.0) -- are the "frontends"
12-
and the only necessary changes to the core kernel for transcendent memory;
13-
all other supporting code -- the "backends" -- is implemented as drivers.
14-
See the LWN.net article `Transcendent memory in a nutshell`_
15-
for a detailed overview of frontswap and related kernel parts)
16-
1711
.. _Transcendent memory in a nutshell: https://lwn.net/Articles/454795/
1812

1913
Frontswap is so named because it can be thought of as the opposite of
@@ -87,11 +81,9 @@ This interface is ideal when data is transformed to a different form
8781
and size (such as with compression) or secretly moved (as might be
8882
useful for write-balancing for some RAM-like devices). Swap pages (and
8983
evicted page-cache pages) are a great use for this kind of slower-than-RAM-
90-
but-much-faster-than-disk "pseudo-RAM device" and the frontswap (and
91-
cleancache) interface to transcendent memory provides a nice way to read
92-
and write -- and indirectly "name" -- the pages.
84+
but-much-faster-than-disk "pseudo-RAM device".
9385

94-
Frontswap -- and cleancache -- with a fairly small impact on the kernel,
86+
Frontswap with a fairly small impact on the kernel,
9587
provides a huge amount of flexibility for more dynamic, flexible RAM
9688
utilization in various system configurations:
9789

Documentation/vm/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ algorithms. If you are looking for advice on simply allocating memory, see the
1515
active_mm
1616
arch_pgtable_helpers
1717
balance
18-
cleancache
1918
damon/index
2019
free_page_reporting
2120
frontswap

MAINTAINERS

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4705,13 +4705,6 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/cla
47054705
F: include/linux/cfi.h
47064706
F: kernel/cfi.c
47074707

4708-
CLEANCACHE API
4709-
M: Konrad Rzeszutek Wilk <[email protected]>
4710-
4711-
S: Maintained
4712-
F: include/linux/cleancache.h
4713-
F: mm/cleancache.c
4714-
47154708
CLK API
47164709
M: Russell King <[email protected]>
47174710

arch/arm/configs/bcm2835_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ CONFIG_ARCH_BCM2835=y
3131
CONFIG_PREEMPT_VOLUNTARY=y
3232
CONFIG_AEABI=y
3333
CONFIG_KSM=y
34-
CONFIG_CLEANCACHE=y
3534
CONFIG_CMA=y
3635
CONFIG_SECCOMP=y
3736
CONFIG_KEXEC=y

arch/arm/configs/qcom_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ CONFIG_PCIE_QCOM=y
2727
CONFIG_SMP=y
2828
CONFIG_PREEMPT=y
2929
CONFIG_HIGHMEM=y
30-
CONFIG_CLEANCACHE=y
3130
CONFIG_ARM_APPENDED_DTB=y
3231
CONFIG_ARM_ATAG_DTB_COMPAT=y
3332
CONFIG_CPU_IDLE=y

arch/m68k/configs/amiga_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ CONFIG_IOSCHED_BFQ=m
4545
CONFIG_BINFMT_AOUT=m
4646
CONFIG_BINFMT_MISC=m
4747
# CONFIG_COMPACTION is not set
48-
CONFIG_CLEANCACHE=y
4948
CONFIG_ZPOOL=m
5049
CONFIG_NET=y
5150
CONFIG_PACKET=y

arch/m68k/configs/apollo_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ CONFIG_IOSCHED_BFQ=m
4141
CONFIG_BINFMT_AOUT=m
4242
CONFIG_BINFMT_MISC=m
4343
# CONFIG_COMPACTION is not set
44-
CONFIG_CLEANCACHE=y
4544
CONFIG_ZPOOL=m
4645
CONFIG_NET=y
4746
CONFIG_PACKET=y

arch/m68k/configs/atari_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ CONFIG_IOSCHED_BFQ=m
4848
CONFIG_BINFMT_AOUT=m
4949
CONFIG_BINFMT_MISC=m
5050
# CONFIG_COMPACTION is not set
51-
CONFIG_CLEANCACHE=y
5251
CONFIG_ZPOOL=m
5352
CONFIG_NET=y
5453
CONFIG_PACKET=y

arch/m68k/configs/bvme6000_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ CONFIG_IOSCHED_BFQ=m
3838
CONFIG_BINFMT_AOUT=m
3939
CONFIG_BINFMT_MISC=m
4040
# CONFIG_COMPACTION is not set
41-
CONFIG_CLEANCACHE=y
4241
CONFIG_ZPOOL=m
4342
CONFIG_NET=y
4443
CONFIG_PACKET=y

0 commit comments

Comments
 (0)