OSDN Git Service

staging: zcache: fix account foregin counters against zero-filled pages
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Wed, 10 Apr 2013 00:25:51 +0000 (08:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 19:58:39 +0000 (12:58 -0700)
commit55345fb9ff68e2e5c0259c814542e72aec972c02
treee4aca5f022a11e599496da57d89b9763699408fd
parentbc38967837802949dd831db6209cedf64239e1cc
staging: zcache: fix account foregin counters against zero-filled pages

zero-filled pages won't be compressed and sent to remote system. Monitor
the number ephemeral and persistent pages that Ramster has sent make no
sense. This patch skip account foregin counters against zero-filled pages.

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/zcache-main.c