From: Wanpeng Li Date: Tue, 2 Apr 2013 02:46:17 +0000 (+0800) Subject: staging: zcache: fix zcache writeback in debugfs X-Git-Tag: v3.10-rc1~192^2~350 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eee53d9218f3ae48244c12d29871862b49a8855d;p=profile%2Fivi%2Fkernel-x86-ivi.git staging: zcache: fix zcache writeback in debugfs commit 9c0ad59ef ("zcache/debug: Use an array to initialize/use debugfs attributes") use an array to initialize/use debugfs attributes, .name = #x, .val = &zcache_##x. For zcache writeback, this commit set .name = zcache_outstanding_writeback_pages and .name = zcache_writtenback_pages seperately, however, corresponding .val = &zcache_zcache_outstanding_writeback_pages and .val = &zcache_zcache_writtenback_pages, which are not correct. Signed-off-by: Wanpeng Li Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/zcache/debug.c b/drivers/staging/zcache/debug.c index 254dada..d2d1fdf 100644 --- a/drivers/staging/zcache/debug.c +++ b/drivers/staging/zcache/debug.c @@ -31,8 +31,8 @@ static struct debug_entry { ATTR(eph_nonactive_puts_ignored), ATTR(pers_nonactive_puts_ignored), #ifdef CONFIG_ZCACHE_WRITEBACK - ATTR(zcache_outstanding_writeback_pages), - ATTR(zcache_writtenback_pages), + ATTR(outstanding_writeback_pages), + ATTR(writtenback_pages), #endif }; #undef ATTR