Skip to content

Commit 72cf9e9

Browse files
committed
smb3: add missing tracepoint for querying wsl EAs
We had tracepoints for the return code for querying WSL EAs (trace_smb3_query_wsl_ea_compound_err and trace_smb3_query_wsl_ea_compound_done) but were missing one for trace_smb3_query_wsl_ea_compound_enter. Fixes: ea41367 ("smb: client: introduce SMB2_OP_QUERY_WSL_EA") Signed-off-by: Steve French <[email protected]>
1 parent 11f8b80 commit 72cf9e9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

fs/smb/client/smb2inode.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
584584
goto finished;
585585
}
586586
num_rqst++;
587+
trace_smb3_query_wsl_ea_compound_enter(xid, tcon->tid,
588+
ses->Suid, full_path);
587589
break;
588590
default:
589591
cifs_dbg(VFS, "Invalid command\n");

fs/smb/client/trace.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(set_eof_enter);
674674
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(set_info_compound_enter);
675675
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(set_reparse_compound_enter);
676676
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(get_reparse_compound_enter);
677+
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(query_wsl_ea_compound_enter);
677678
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(delete_enter);
678679
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(mkdir_enter);
679680
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(tdis_enter);

0 commit comments

Comments
 (0)