Skip to content

Commit 175b54a

Browse files
sprasad-microsoftsmfrench
authored andcommitted
cifs: print session id while listing open files
In the output of /proc/fs/cifs/open_files, we only print the tree id for the tcon of each open file. It becomes difficult to know which tcon these files belong to with just the tree id. This change dumps ses id in addition to all other data today. Signed-off-by: Shyam Prasad N <[email protected]> Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Cc: [email protected] Signed-off-by: Steve French <[email protected]>
1 parent d12bc6d commit 175b54a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/cifs/cifs_debug.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static int cifs_debug_files_proc_show(struct seq_file *m, void *v)
176176

177177
seq_puts(m, "# Version:1\n");
178178
seq_puts(m, "# Format:\n");
179-
seq_puts(m, "# <tree id> <persistent fid> <flags> <count> <pid> <uid>");
179+
seq_puts(m, "# <tree id> <ses id> <persistent fid> <flags> <count> <pid> <uid>");
180180
#ifdef CONFIG_CIFS_DEBUG2
181181
seq_printf(m, " <filename> <mid>\n");
182182
#else
@@ -189,8 +189,9 @@ static int cifs_debug_files_proc_show(struct seq_file *m, void *v)
189189
spin_lock(&tcon->open_file_lock);
190190
list_for_each_entry(cfile, &tcon->openFileList, tlist) {
191191
seq_printf(m,
192-
"0x%x 0x%llx 0x%x %d %d %d %pd",
192+
"0x%x 0x%llx 0x%llx 0x%x %d %d %d %pd",
193193
tcon->tid,
194+
ses->Suid,
194195
cfile->fid.persistent_fid,
195196
cfile->f_flags,
196197
cfile->count,

0 commit comments

Comments
 (0)