diff options
author | Henrique Carvalho <henrique.carvalho@suse.com> | 2024-11-12 16:48:09 -0300 |
---|---|---|
committer | Enzo Matsumiya <ematsumiya@suse.de> | 2024-11-13 15:49:46 -0300 |
commit | 472697f67cf64a2461ad1842927f3c8cc539f37e (patch) | |
tree | 37bb1e46b0884721d35eb5d902aaf1bcf88374b0 /fs/smb/client/reparse.c | |
parent | 8e5cdf186897806453d95697985d2eb21a4730a7 (diff) | |
download | linux-hw24-hc-wip.tar.gz linux-hw24-hc-wip.tar.bz2 linux-hw24-hc-wip.zip |
smb: client: replace function pointers of common operations for thehw24-hc-wip
common function
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Diffstat (limited to 'fs/smb/client/reparse.c')
-rw-r--r-- | fs/smb/client/reparse.c | 8 |
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; |