Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc4fc29e authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 08dc179b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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),