From: Wanpeng Li Date: Tue, 2 Apr 2013 02:46:15 +0000 (+0800) Subject: staging: zcache: handle zcache_[eph|pers]_zpages for zero-filled page X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~352 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0749e77ae972713c1734cea069f32597ecedbd5;p=pandora-kernel.git staging: zcache: handle zcache_[eph|pers]_zpages for zero-filled page Increment/decrement zcache_[eph|pers]_zpages for zero-filled pages, the main point of the counters for zpages and pageframes is to be able to calculate density == zpages/pageframes. A zero-filled page becomes a zpage that "compresses" to zero bytes and, as a result, requires zero pageframes for storage. So the zpages counter should be increased but the pageframes counter should not. [Dan Magenheimer : patch description] Acked-by: Dan Magenheimer Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Wanpeng Li Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed