summaryrefslogtreecommitdiffstats
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2020-06-12 05:28:49 +0200
committerSteve French <stfrench@microsoft.com>2020-06-12 13:21:19 +0200
commit790434ff9848a4d44f067a6a5416b49a2db89a59 (patch)
treecfba136a27888bf883475dbc5aaa90551faff37b /fs/cifs/dir.c
parentsmb311: Add support for SMB311 query info (non-compounded) (diff)
downloadlinux-790434ff9848a4d44f067a6a5416b49a2db89a59.tar.xz
linux-790434ff9848a4d44f067a6a5416b49a2db89a59.zip
smb311: Add support for lookup with posix extensions query info
Improve support for lookup when using SMB3.1.1 posix mounts. Use new info level 100 (posix query info) Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r--fs/cifs/dir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 36e7b2fd2190..aa61ffab8ab8 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -700,7 +700,9 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
cifs_dbg(FYI, "Full path: %s inode = 0x%p\n",
full_path, d_inode(direntry));
- if (pTcon->unix_ext) {
+ if (pTcon->posix_extensions)
+ rc = smb311_posix_get_inode_info(&newInode, full_path, parent_dir_inode->i_sb, xid);
+ else if (pTcon->unix_ext) {
rc = cifs_get_inode_info_unix(&newInode, full_path,
parent_dir_inode->i_sb, xid);
} else {