Skip to content

Commit 00a66d2

Browse files
congwangtorvalds
authored andcommitted
mm: remove the leftovers of noswapaccount
In commit a2c8990 ("memsw: remove noswapaccount kernel parameter"), Michal forgot to remove some left pieces of noswapaccount in the tree, this patch removes them all. Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com> Acked-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent dd78553 commit 00a66d2

3 files changed

Lines changed: 3 additions & 19 deletions

File tree

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -518,22 +518,6 @@ Files: net/netfilter/xt_connlimit.c
518518

519519
----------------------------
520520

521-
What: noswapaccount kernel command line parameter
522-
When: 2.6.40
523-
Why: The original implementation of memsw feature enabled by
524-
CONFIG_CGROUP_MEM_RES_CTLR_SWAP could be disabled by the noswapaccount
525-
kernel parameter (introduced in 2.6.29-rc1). Later on, this decision
526-
turned out to be not ideal because we cannot have the feature compiled
527-
in and disabled by default and let only interested to enable it
528-
(e.g. general distribution kernels might need it). Therefore we have
529-
added swapaccount[=0|1] parameter (introduced in 2.6.37) which provides
530-
the both possibilities. If we remove noswapaccount we will have
531-
less command line parameters with the same functionality and we
532-
can also cleanup the parameter handling a bit ().
533-
Who: Michal Hocko <mhocko@suse.cz>
534-
535-
----------------------------
536-
537521
What: ipt_addrtype match include file
538522
When: 2012
539523
Why: superseded by xt_addrtype

‎init/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ config CGROUP_MEM_RES_CTLR_SWAP
673673
be careful about enabling this. When memory resource controller
674674
is disabled by boot option, this will be automatically disabled and
675675
there will be no overhead from this. Even when you set this config=y,
676-
if boot option "noswapaccount" is set, swap will not be accounted.
676+
if boot option "swapaccount=0" is set, swap will not be accounted.
677677
Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
678678
size is 4096bytes, 512k per 1Gbytes of swap.
679679
config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
@@ -688,7 +688,7 @@ config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
688688
parameter should have this option unselected.
689689
For those who want to have the feature enabled by default should
690690
select this option (if, for some reason, they need to disable it
691-
then noswapaccount does the trick).
691+
then swapaccount=0 does the trick).
692692

693693
config CGROUP_PERF
694694
bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"

‎mm/page_cgroup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ int swap_cgroup_swapon(int type, unsigned long max_pages)
537537
nomem:
538538
printk(KERN_INFO "couldn't allocate enough memory for swap_cgroup.\n");
539539
printk(KERN_INFO
540-
"swap_cgroup can be disabled by noswapaccount boot option\n");
540+
"swap_cgroup can be disabled by swapaccount=0 boot option\n");
541541
return -ENOMEM;
542542
}
543543

0 commit comments

Comments
 (0)