[PATCH PART2 v2 1/7] staging: ramster: decrease foregin pers pages when count < 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 9a5c59687ad ("staging: ramster: Provide accessory functions for 
counter decrease") forget decrease foregin pers pages, this patch fix 
it.

Acked-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Signed-off-by: Wanpeng Li <liwanp@xxxxxxxxxxxxxxxxxx>
---
 drivers/staging/zcache/ramster/ramster.c |    1 +
 1 file changed, 1 insertion(+)

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);
 		}
 	}
-- 
1.7.10.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]