summaryrefslogtreecommitdiffstats
path: root/fs/cifs/link.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2009-04-30 21:31:15 +0000
committerSteve French <sfrench@us.ibm.com>2009-04-30 21:31:15 +0000
commit9e39b0ae8af46c83b85dae7ff5251911a80fce5a (patch)
tree3e6efa6cb324e77e82a930cb8afba768e78d574f /fs/cifs/link.c
parentd185cda7712fd1d9e349174639d76eadc66679be (diff)
downloadop-kernel-dev-9e39b0ae8af46c83b85dae7ff5251911a80fce5a.zip
op-kernel-dev-9e39b0ae8af46c83b85dae7ff5251911a80fce5a.tar.gz
[CIFS] Remove unneeded QuerySymlink call and fix mapping for unmapped status
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r--fs/cifs/link.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c
index e17a092..eb2fbbe 100644
--- a/fs/cifs/link.c
+++ b/fs/cifs/link.c
@@ -257,13 +257,8 @@ cifs_readlink(struct dentry *direntry, char __user *pBuffer, int buflen)
/* BB add read reparse point symlink code and
Unix extensions symlink code here BB */
-/* We could disable this based on pTcon->unix_ext flag instead ... but why? */
- if (cifs_sb->tcon->ses->capabilities & CAP_UNIX)
- rc = CIFSSMBUnixQuerySymLink(xid, pTcon, full_path,
- tmpbuffer,
- len - 1,
- cifs_sb->local_nls);
- else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) {
+
+ if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) {
cERROR(1, ("SFU style symlinks not implemented yet"));
/* add open and read as in fs/cifs/inode.c */
} else {
OpenPOWER on IntegriCloud