Skip to contentSkip to conversation

mm-zswapc-change-params-from-hidden-to-ro.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 24, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-zswapc-change-params-from-hidden-to-ro.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 24 Jan 2014 10:58:23 -0800

The patch titled
Subject: mm/zswap.c: change params from hidden to ro
has been removed from the -mm tree. Its filename was
mm-zswapc-change-params-from-hidden-to-ro.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
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
diff -puN mm/zswap.c~mm-zswapc-change-params-from-hidden-to-ro mm/zswap.c
@@ -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

origin.patch