aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Haugan <ohaugan@codeaurora.org>2013-09-05 09:17:58 -0700
committerSimon Shields <keepcalm444@gmail.com>2016-06-12 21:19:47 +1000
commitc32d11d7bfc35f379da6983537bc221c27bd7b26 (patch)
tree2bef1c58af2293ac3b1a9f4da51d7448c2bd8c4a
parent875fae5428c584fefab66accdf1ddf388b9ebd4f (diff)
downloadkernel_samsung_smdk4412-c32d11d7bfc35f379da6983537bc221c27bd7b26.zip
kernel_samsung_smdk4412-c32d11d7bfc35f379da6983537bc221c27bd7b26.tar.gz
kernel_samsung_smdk4412-c32d11d7bfc35f379da6983537bc221c27bd7b26.tar.bz2
zram: Change ratio to 90% for bad compress
Change the ratio for determining whether or not we should store pages as uncompressed in zram. This will allow zram to fit more data since more of the pages will be stored as compressed. Change-Id: I37170cafff7e8a4cc44f1622fe52a6cbff85f218 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
-rw-r--r--drivers/staging/zram/zram_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/zram/zram_drv.h b/drivers/staging/zram/zram_drv.h
index 97a3acf..508a19f 100644
--- a/drivers/staging/zram/zram_drv.h
+++ b/drivers/staging/zram/zram_drv.h
@@ -32,7 +32,7 @@ static const unsigned max_num_devices = 32;
* Pages that compress to size greater than this are stored
* uncompressed in memory.
*/
-static const size_t max_zpage_size = PAGE_SIZE / 4 * 3;
+static const size_t max_zpage_size = PAGE_SIZE / 10 * 9;
/*
* NOTE: max_zpage_size must be less than or equal to: