From: Steve French Date: Fri, 12 Jun 2020 03:28:49 +0000 (-0500) Subject: smb311: Add support for lookup with posix extensions query info X-Git-Tag: baikal/mips/sdk5.9~13369^2~5 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=25b3a708fb750a545b834be120c68ef3659f166e;p=kernel.git 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 Reviewed-by: Aurelien Aptel --- diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 36e7b2fd2190b..aa61ffab8ab8a 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 {