]> git.baikalelectronics.ru Git - kernel.git/commitdiff
smb311: Add support for lookup with posix extensions query info
authorSteve French <stfrench@microsoft.com>
Fri, 12 Jun 2020 03:28:49 +0000 (22:28 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Jun 2020 11:21:19 +0000 (06:21 -0500)
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>
fs/cifs/dir.c

index 36e7b2fd2190b32462eba9c65c424408a15d0fe6..aa61ffab8ab8a4c58bb4dd736a84b65a437c4112 100644 (file)
@@ -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 {