Commit eee53d92 authored by Wanpeng Li's avatar Wanpeng Li Committed by Greg Kroah-Hartman

staging: zcache: fix zcache writeback in debugfs

commit 9c0ad59e ("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: default avatarWanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: default avatarKonrad Rzeszutek Wilk <konrad@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 380cb19e
...@@ -31,8 +31,8 @@ static struct debug_entry { ...@@ -31,8 +31,8 @@ static struct debug_entry {
ATTR(eph_nonactive_puts_ignored), ATTR(eph_nonactive_puts_ignored),
ATTR(pers_nonactive_puts_ignored), ATTR(pers_nonactive_puts_ignored),
#ifdef CONFIG_ZCACHE_WRITEBACK #ifdef CONFIG_ZCACHE_WRITEBACK
ATTR(zcache_outstanding_writeback_pages), ATTR(outstanding_writeback_pages),
ATTR(zcache_writtenback_pages), ATTR(writtenback_pages),
#endif #endif
}; };
#undef ATTR #undef ATTR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment