* [PATCH] FS-Cache: Order the debugfs stats correctly
@ 2010-03-30 18:02 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2010-03-30 18:02 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-cachefs, linux-kernel, David Howells
Order the debugfs statistics correctly. The values displayed through a
seq_printf() statement should be in the same order as the names in the format
string.
In the 'Lookups' line, objects created ('crt=') and lookups timed out ('tmo=')
have their values transposed.
Signed-off-by: David Howells <dhowells@redhat.com>
---
fs/fscache/stats.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/fscache/stats.c b/fs/fscache/stats.c
index 46435f3..4765190 100644
--- a/fs/fscache/stats.c
+++ b/fs/fscache/stats.c
@@ -165,8 +165,8 @@ static int fscache_stats_show(struct seq_file *m, void *v)
atomic_read(&fscache_n_object_lookups),
atomic_read(&fscache_n_object_lookups_negative),
atomic_read(&fscache_n_object_lookups_positive),
- atomic_read(&fscache_n_object_lookups_timed_out),
- atomic_read(&fscache_n_object_created));
+ atomic_read(&fscache_n_object_created),
+ atomic_read(&fscache_n_object_lookups_timed_out));
seq_printf(m, "Updates: n=%u nul=%u run=%u\n",
atomic_read(&fscache_n_updates),
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-30 18:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-30 18:02 [PATCH] FS-Cache: Order the debugfs stats correctly David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®