diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2023-03-17 13:51:17 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-03-24 15:02:26 +0100 |
commit | fddc6ccc487e5de07b98df8d04118d5dcb5e0407 (patch) | |
tree | e8343662b861bcf39d8bef216c981ea8f5c28a2c /fs/cifs/smb2inode.c | |
parent | cifs: print session id while listing open files (diff) | |
download | linux-fddc6ccc487e5de07b98df8d04118d5dcb5e0407.tar.xz linux-fddc6ccc487e5de07b98df8d04118d5dcb5e0407.zip |
cifs: append path to open_enter trace event
We do not dump the file path for smb3_open_enter ftrace
calls, which is a severe handicap while debugging
using ftrace evens. This change adds that info.
Unfortunately, we're not updating the path in open params
in many places; which I had to do as a part of this change.
SMB2_open gets path in utf16 format, but it's easier of
path is supplied as char pointer in oparms.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2inode.c')
-rw-r--r-- | fs/cifs/smb2inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c index 8dd3791b5c53..163a03298430 100644 --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c @@ -107,6 +107,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, vars->oparms = (struct cifs_open_parms) { .tcon = tcon, + .path = full_path, .desired_access = desired_access, .disposition = create_disposition, .create_options = cifs_create_options(cifs_sb, create_options), |