add discard option -d to swapon
Signed-off-by: Matt Whitlock <busybox@mattwhitlock.name> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
b9bbd4ddf6
commit
0a53b203f9
@@ -599,6 +599,15 @@ config SWAPONOFF
|
||||
space. If you are not using any swap space, you can leave this
|
||||
option disabled.
|
||||
|
||||
config FEATURE_SWAPON_DISCARD
|
||||
bool "Support discard option -d"
|
||||
default y
|
||||
depends on SWAPONOFF
|
||||
help
|
||||
Enable support for discarding swap area blocks at swapon and/or as
|
||||
the kernel frees them. This option enables both the -d option on
|
||||
'swapon' and the 'discard' option for swap entries in /etc/fstab.
|
||||
|
||||
config FEATURE_SWAPON_PRI
|
||||
bool "Support priority option -p"
|
||||
default y
|
||||
|
Reference in New Issue
Block a user