Commit cc4fc29e59c386919a7674e203be7822dc968dc0

Authored by David Howells
Committed by Linus Torvalds
1 parent 08dc179b9b

fs-cache: order the debugfs stats correctly

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -165,8 +165,8 @@
165 165 atomic_read(&fscache_n_object_lookups),
166 166 atomic_read(&fscache_n_object_lookups_negative),
167 167 atomic_read(&fscache_n_object_lookups_positive),
168   - atomic_read(&fscache_n_object_lookups_timed_out),
169   - atomic_read(&fscache_n_object_created));
  168 + atomic_read(&fscache_n_object_created),
  169 + atomic_read(&fscache_n_object_lookups_timed_out));
170 170  
171 171 seq_printf(m, "Updates: n=%u nul=%u run=%u\n",
172 172 atomic_read(&fscache_n_updates),