diff options
author | Wanpeng Li <liwanp@linux.vnet.ibm.com> | 2013-04-12 05:31:21 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-13 02:14:40 +0400 |
commit | c067ad112427440ee0dc79cfc98435abce3bc178 (patch) | |
tree | 2f4c8b784a81a58bb7951c1bd99358f72668d6b3 | |
parent | c400c1e1c42d4acff3e1dc0dade184f01b45e8a2 (diff) | |
download | linux-c067ad112427440ee0dc79cfc98435abce3bc178.tar.xz |
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 <dan.magenheimer@oracle.com>
Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/zcache/ramster/ramster.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/zcache/ramster/ramster.c b/drivers/staging/zcache/ramster/ramster.c index c3d7f96b029a..444189e10895 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); } } |