aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/link.c
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2013-11-27 08:27:12 -0500
committerSteve French <smfrench@gmail.com>2014-01-20 01:14:05 -0500
commit0ecdb4f572f6ab2219a01e3af349863f6e8b45af (patch)
tree7c0979808ff41e9d66f11342cb448e797865f395 /fs/cifs/link.c
parent0f8dce1cb7454f8795b73c5695a28e7a21a57ba0 (diff)
cifs: move unix extension call to cifs_query_symlink()
Unix extensions rigth now are only applicable to smb1 operations. Move the check and subsequent unix extension call to the smb1 specific call to query_symlink() ie. cifs_query_symlink(). Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r--fs/cifs/link.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c
index 5988b6060e8a..38b9bf4f5a6b 100644
--- a/fs/cifs/link.c
+++ b/fs/cifs/link.c
@@ -518,10 +518,7 @@ cifs_follow_link(struct dentry *direntry, struct nameidata *nd)
518 rc = query_mf_symlink(xid, tcon, cifs_sb, full_path, 518 rc = query_mf_symlink(xid, tcon, cifs_sb, full_path,
519 &target_path); 519 &target_path);
520 520
521 if ((rc != 0) && cap_unix(tcon->ses)) 521 if (rc != 0 && server->ops->query_symlink)
522 rc = CIFSSMBUnixQuerySymLink(xid, tcon, full_path, &target_path,
523 cifs_sb->local_nls);
524 else if (rc != 0 && server->ops->query_symlink)
525 rc = server->ops->query_symlink(xid, tcon, full_path, 522 rc = server->ops->query_symlink(xid, tcon, full_path,
526 &target_path, cifs_sb); 523 &target_path, cifs_sb);
527 524