From: Wanpeng Li <liwanp@linux.vnet.ibm.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Dan Magenheimer <dan.magenheimer@oracle.com>,
Seth Jennings <sjenning@linux.vnet.ibm.com>,
Konrad Rzeszutek Wilk <konrad@darnok.org>,
Minchan Kim <minchan@kernel.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Bob Liu <bob.liu@oracle.com>,
Wanpeng Li <liwanp@linux.vnet.ibm.com>
Subject: [PATCH PART2 v2 1/7] staging: ramster: decrease foregin pers pages when count < 0
Date: Fri, 12 Apr 2013 09:31:21 +0800 [thread overview]
Message-ID: <1365730287-16876-2-git-send-email-liwanp@linux.vnet.ibm.com> (raw)
In-Reply-To: <1365730287-16876-1-git-send-email-liwanp@linux.vnet.ibm.com>
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>
---
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@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2013-04-12 1:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 1:31 [PATCH PART2 v2 0/7] staging: zcache/ramster: fix and ramster/debugfs improvement Wanpeng Li
2013-04-12 1:31 ` Wanpeng Li [this message]
2013-04-12 1:31 ` [PATCH PART2 v2 2/7] staging: ramster: Move debugfs code out of ramster.c file Wanpeng Li
2013-04-12 22:16 ` Greg Kroah-Hartman
2013-04-12 22:17 ` Greg Kroah-Hartman
2013-04-13 0:29 ` Wanpeng Li
2013-04-13 0:29 ` Wanpeng Li
[not found] ` <5168a707.22e7420a.160b.ffffc573SMTPIN_ADDED_BROKEN@mx.google.com>
2013-04-13 3:05 ` Greg Kroah-Hartman
2013-04-13 0:28 ` Wanpeng Li
2013-04-13 0:28 ` Wanpeng Li
2013-04-12 1:31 ` [PATCH PART2 v2 3/7] staging: ramster/debug: Use an array to initialize/use debugfs attributes Wanpeng Li
2013-04-12 1:31 ` [PATCH PART2 v2 4/7] staging: ramster: Add incremental accessory counters Wanpeng Li
2013-04-12 1:31 ` [PATCH PART2 v2 5/7] staging: ramster/debug: Add RAMSTER_DEBUG Kconfig entry Wanpeng Li
2013-04-12 1:31 ` [PATCH PART2 v2 6/7] staging: zcache/debug: fix coding style Wanpeng Li
2013-04-12 1:31 ` [PATCH PART2 v2 7/7] staging: ramster: add how-to for ramster Wanpeng Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1365730287-16876-2-git-send-email-liwanp@linux.vnet.ibm.com \
--to=liwanp@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=bob.liu@oracle.com \
--cc=dan.magenheimer@oracle.com \
--cc=gregkh@linuxfoundation.org \
--cc=konrad@darnok.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.org \
--cc=sjenning@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).