+ mm-zswapc-change-params-from-hidden-to-ro.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + mm-zswapc-change-params-from-hidden-to-ro.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 16 Dec 2013 11:55:54 -0800
The patch titled
Subject: mm/zswap.c: change params from hidden to ro
has been added to the -mm tree. Its filename is
mm-zswapc-change-params-from-hidden-to-ro.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-zswapc-change-params-from-hidden-to-ro.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-zswapc-change-params-from-hidden-to-ro.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Dan Streetman <[email protected]>
Subject: mm/zswap.c: change params from hidden to ro
The "compressor" and "enabled" params are currently hidden, this changes them to read-only, so userspace can tell if zswap is enabled or not and see what compressor is in use.
---
mm/zswap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/zswap.c renamed from mm/zswap.c~mm-zswapc-change-params-from-hidden-to-ro +2 -2
@@ -77,12 +77,12 @@ static u64 zswap_duplicate_entry;**********************************/ /* Enable/disable zswap (disabled by default, fixed at boot for now) */ static bool zswap_enabled__read_mostly ; -module_param_named (enabled, zswap_enabled, bool,0 ); +module_param_named (enabled, zswap_enabled, bool,0444 );/* Compressor to be used by zswap (fixed at boot for now) */ #define ZSWAP_COMPRESSOR_DEFAULT "lzo"static char *zswap_compressor =ZSWAP_COMPRESSOR_DEFAULT ; -module_param_named (compressor, zswap_compressor, charp,0 ); +module_param_named (compressor, zswap_compressor, charp,0444 );/* The maximum percentage of memory that the compressed pool can occupy */ static unsigned int zswap_max_pool_percent =20 ;
_
Patches currently in -mm which might be from [email protected] are
mm-zswapc-change-params-from-hidden-to-ro.patch