summaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2020-12-14 16:40:24 +1000
committerSteve French <stfrench@microsoft.com>2020-12-14 09:26:30 -0600
commit51acd208bd57c82eaa2fda3cab03d62436c6a2ae (patch)
treef949b38df2d7574bce4d60283d0c9435d5ffe1d6 /fs/cifs/connect.c
parent531f03bc6d0509f2e7a5852e3f1819166e0f364c (diff)
downloadlinux-51acd208bd57c82eaa2fda3cab03d62436c6a2ae.tar.gz
linux-51acd208bd57c82eaa2fda3cab03d62436c6a2ae.tar.bz2
linux-51acd208bd57c82eaa2fda3cab03d62436c6a2ae.zip
cifs: remove ctx argument from cifs_setup_cifs_sb
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 5ed7403ad5f2..e0864ae42d0d 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2701,16 +2701,17 @@ void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
}
}
-int cifs_setup_cifs_sb(struct smb3_fs_context *ctx,
- struct cifs_sb_info *cifs_sb)
+int cifs_setup_cifs_sb(struct cifs_sb_info *cifs_sb)
{
+ struct smb3_fs_context *ctx = cifs_sb->ctx;
+
INIT_DELAYED_WORK(&cifs_sb->prune_tlinks, cifs_prune_tlinks);
spin_lock_init(&cifs_sb->tlink_tree_lock);
cifs_sb->tlink_tree = RB_ROOT;
cifs_dbg(FYI, "file mode: %04ho dir mode: %04ho\n",
- cifs_sb->ctx->file_mode, cifs_sb->ctx->dir_mode);
+ ctx->file_mode, ctx->dir_mode);
/* this is needed for ASCII cp to Unicode converts */
if (ctx->iocharset == NULL) {