summaryrefslogtreecommitdiffstats
path: root/fs/cifs/dfs_cache.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2020-12-10 07:06:02 +0100
committerSteve French <stfrench@microsoft.com>2020-12-14 02:12:07 +0100
commit24e0a1eff9e2b9835a6e7c17039dfb6ecfd81f1f (patch)
tree56ba9dcbfc2c975fafc76582edfd18190b5737d6 /fs/cifs/dfs_cache.c
parentcifs: move cifs_parse_devname to fs_context.c (diff)
downloadlinux-24e0a1eff9e2b9835a6e7c17039dfb6ecfd81f1f.tar.xz
linux-24e0a1eff9e2b9835a6e7c17039dfb6ecfd81f1f.zip
cifs: switch to new mount api
See Documentation/filesystems/mount_api.rst for details on new mount API Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/dfs_cache.c')
-rw-r--r--fs/cifs/dfs_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c
index 2b77d39d7d22..dde859c21f1a 100644
--- a/fs/cifs/dfs_cache.c
+++ b/fs/cifs/dfs_cache.c
@@ -18,9 +18,9 @@
#include "cifs_debug.h"
#include "cifs_unicode.h"
#include "smb2glob.h"
+#include "fs_context.h"
#include "dfs_cache.h"
-#include "fs_context.h"
#define CACHE_HTABLE_SIZE 32
#define CACHE_MAX_ENTRIES 64
@@ -1142,14 +1142,14 @@ out_unlock:
}
/**
- * dfs_cache_add_vol - add a cifs volume during mount() that will be handled by
+ * dfs_cache_add_vol - add a cifs context during mount() that will be handled by
* DFS cache refresh worker.
*
* @mntdata: mount data.
* @ctx: cifs context.
* @fullpath: origin full path.
*
- * Return zero if volume was set up correctly, otherwise non-zero.
+ * Return zero if context was set up correctly, otherwise non-zero.
*/
int dfs_cache_add_vol(char *mntdata, struct smb3_fs_context *ctx, const char *fullpath)
{
@@ -1453,7 +1453,7 @@ static struct cifs_ses *find_root_ses(struct vol_info *vi,
goto out;
}
- rc = cifs_setup_volume_info(&ctx, mdata, devname, false);
+ rc = cifs_setup_volume_info(&ctx);
kfree(devname);
if (rc) {