aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Haugan <ohaugan@codeaurora.org>2013-11-01 17:08:26 -0700
committerSimon Shields <keepcalm444@gmail.com>2016-06-12 21:19:46 +1000
commit875fae5428c584fefab66accdf1ddf388b9ebd4f (patch)
tree513ff1a6ed36bb6e5d6dfe5057f7416c3d96a5f9
parent84fe4a2b991d92deb774c399514612c589ae4eb1 (diff)
downloadkernel_samsung_smdk4412-875fae5428c584fefab66accdf1ddf388b9ebd4f.zip
kernel_samsung_smdk4412-875fae5428c584fefab66accdf1ddf388b9ebd4f.tar.gz
kernel_samsung_smdk4412-875fae5428c584fefab66accdf1ddf388b9ebd4f.tar.bz2
zram: Disable allocation failure logging
Disable the logging of errors when allocations fail for zram pages. This avoid excessive logging when system is very low on memory. Change-Id: Ifabcf8f1b9c3e3717599d6a0a924f7b2061f00ea Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
-rw-r--r--drivers/staging/zram/zram_drv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c
index 0cf058a..72fbf05 100644
--- a/drivers/staging/zram/zram_drv.c
+++ b/drivers/staging/zram/zram_drv.c
@@ -221,7 +221,8 @@ static struct zram_meta *zram_meta_alloc(u64 disksize)
goto free_buffer;
}
- meta->mem_pool = zs_create_pool(GFP_NOIO | __GFP_HIGHMEM);
+ meta->mem_pool = zs_create_pool(GFP_NOIO | __GFP_HIGHMEM |
+ __GFP_NOWARN);
if (!meta->mem_pool) {
pr_err("Error creating memory pool\n");
goto free_table;