summaryrefslogtreecommitdiff
path: root/fs/smb/client/reparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/smb/client/reparse.c')
-rw-r--r--fs/smb/client/reparse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/smb/client/reparse.c b/fs/smb/client/reparse.c
index 74abbdf5026c..4ba9eb4a1ae5 100644
--- a/fs/smb/client/reparse.c
+++ b/fs/smb/client/reparse.c
@@ -189,11 +189,11 @@ static int detect_directory_symlink_target(struct cifs_sb_info *cifs_sb,
oplock = 0;
oparms.create_options = cifs_create_options(cifs_sb,
CREATE_NOT_FILE | OPEN_REPARSE_POINT);
- open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
+ open_rc = smb2_open_file(xid, &oparms, &oplock, NULL);
if (open_rc == 0) {
/* Successful open means that the target path is definitely a directory. */
*directory = true;
- tcon->ses->server->ops->close(xid, tcon, &fid);
+ smb2_close_file(xid, tcon, &fid);
} else if (open_rc == -ENOTDIR) {
/* -ENOTDIR means that the target path is definitely a file. */
*directory = false;
@@ -208,11 +208,11 @@ static int detect_directory_symlink_target(struct cifs_sb_info *cifs_sb,
oplock = 0;
oparms.create_options = cifs_create_options(cifs_sb,
CREATE_NOT_DIR | OPEN_REPARSE_POINT);
- open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
+ open_rc = smb2_open_file(xid, &oparms, &oplock, NULL);
if (open_rc == 0) {
/* Successful open means that the target path is definitely a file. */
*directory = false;
- tcon->ses->server->ops->close(xid, tcon, &fid);
+ smb2_close_file(xid, tcon, &fid);
} else if (open_rc == -EISDIR) {
/* -EISDIR means that the target path is definitely a directory. */
*directory = true;