Skip to content

Commit

Permalink
smb3: fix minor debug output for CONFIG_CIFS_STATS
Browse files Browse the repository at this point in the history
CONFIG_CIFS_STATS is now always enabled (to simplify the
code and since the STATS are important for some common
customer use cases and also debugging), but needed one
minor change so that STATS shows as enabled in the debug
output in /proc/fs/cifs/DebugData, otherwise it could
get confusing with STATS no longer showing up in the
"Features" list in /proc/fs/cifs/DebugData when basic
stats were in fact available.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
  • Loading branch information
Steve French committed Aug 7, 2018
1 parent 020eec5 commit d258650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/cifs_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
#endif
#ifdef CONFIG_CIFS_STATS2
seq_printf(m, ",STATS2");
#elif defined(CONFIG_CIFS_STATS)
#else
seq_printf(m, ",STATS");
#endif
#ifdef CONFIG_CIFS_DEBUG2
Expand Down

0 comments on commit d258650

Please sign in to comment.