]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: zcache: fix pers_pageframes|_max aren't exported in debugfs
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Tue, 2 Apr 2013 02:46:16 +0000 (10:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Apr 2013 19:55:37 +0000 (12:55 -0700)
Before commit 9c0ad59ef ("zcache/debug: Use an array to initialize/use
debugfs attributes"), pers_pageframes|_max are exported in debugfs, but
this commit forgot use array export pers_pageframes|_max. This patch add
pers_pageframes|_max back.

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/debug.c

index e951c64a13dc7c46c0c70be09fe4d08efafe188e..254dada16ea0f3cf7343b63612b1ba5421526a4b 100644 (file)
@@ -21,6 +21,7 @@ static struct debug_entry {
        ATTR(pers_ate_eph), ATTR(pers_ate_eph_failed),
        ATTR(evicted_eph_zpages), ATTR(evicted_eph_pageframes),
        ATTR(eph_pageframes), ATTR(eph_pageframes_max),
+       ATTR(pers_pageframes), ATTR(pers_pageframes_max),
        ATTR(eph_zpages), ATTR(eph_zpages_max),
        ATTR(pers_zpages), ATTR(pers_zpages_max),
        ATTR(last_active_file_pageframes),