From: Wanpeng Li Date: Fri, 12 Apr 2013 01:31:21 +0000 (+0800) Subject: staging: ramster: decrease foregin pers pages when count < 0 X-Git-Tag: v3.12-rc1~1000^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c067ad112427440ee0dc79cfc98435abce3bc178;p=kernel%2Fkernel-generic.git staging: ramster: decrease foregin pers pages when count < 0 commit 9a5c59687ad ("staging: ramster: Provide accessory functions for counter decrease") forget decrease foregin pers pages, this patch fix it. Acked-by: Dan Magenheimer Signed-off-by: Wanpeng Li Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/zcache/ramster/ramster.c b/drivers/staging/zcache/ramster/ramster.c index c3d7f96..444189e 100644 --- a/drivers/staging/zcache/ramster/ramster.c +++ b/drivers/staging/zcache/ramster/ramster.c @@ -508,6 +508,7 @@ void ramster_count_foreign_pages(bool eph, int count) if (count > 0) { inc_ramster_foreign_pers_pages(); } else { + dec_ramster_foreign_pers_pages(); WARN_ON_ONCE(ramster_foreign_pers_pages < 0); } }