aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifs_dfs_ref.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-01-25 05:12:41 -0500
committerSteve French <sfrench@us.ibm.com>2008-01-25 05:12:41 -0500
commit366781c19635d861f43ff5e03388a3873ec912d9 (patch)
treebeef581849a76dd7b1c1e365c19314409f2189fb /fs/cifs/cifs_dfs_ref.c
parent6d5ae0deb1641bf615eafd8fef64218e10cb2fd0 (diff)
[CIFS] DFS build fixes
Also includes a few minor changes suggested by Christoph Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_dfs_ref.c')
-rw-r--r--fs/cifs/cifs_dfs_ref.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c
index 15e31f8435ba..413ee2349d1a 100644
--- a/fs/cifs/cifs_dfs_ref.c
+++ b/fs/cifs/cifs_dfs_ref.c
@@ -3,8 +3,9 @@
3 * traversal via DFS junction point 3 * traversal via DFS junction point
4 * 4 *
5 * Copyright (c) 2007 Igor Mammedov 5 * Copyright (c) 2007 Igor Mammedov
6 * Copyright (C) International Business Machines Corp., 2008
6 * Author(s): Igor Mammedov (niallain@gmail.com) 7 * Author(s): Igor Mammedov (niallain@gmail.com)
7 * 8 * Steve French (sfrench@us.ibm.com)
8 * This program is free software; you can redistribute it and/or 9 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License 10 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 11 * as published by the Free Software Foundation; either version
@@ -107,8 +108,9 @@ static char *cifs_get_share_name(const char *node_name)
107 * Returns: pointer to new mount options or ERR_PTR. 108 * Returns: pointer to new mount options or ERR_PTR.
108 * Caller is responcible for freeing retunrned value if it is not error. 109 * Caller is responcible for freeing retunrned value if it is not error.
109 */ 110 */
110char *compose_mount_options(const char *sb_mountdata, const char *ref_unc, 111static char *compose_mount_options(const char *sb_mountdata,
111 char **devname) 112 const char *ref_unc,
113 char **devname)
112{ 114{
113 int rc; 115 int rc;
114 char *mountdata; 116 char *mountdata;
@@ -188,13 +190,13 @@ compose_mount_options_out:
188} 190}
189 191
190 192
191struct vfsmount *cifs_dfs_do_refmount(const struct vfsmount *mnt_parent, 193static struct vfsmount *cifs_dfs_do_refmount(const struct vfsmount *mnt_parent,
192 struct dentry *dentry, char *ref_unc) 194 struct dentry *dentry, char *ref_unc)
193{ 195{
194 struct cifs_sb_info *cifs_sb; 196 struct cifs_sb_info *cifs_sb;
195 struct vfsmount *mnt; 197 struct vfsmount *mnt;
196 char *mountdata; 198 char *mountdata;
197 char *devname; 199 char *devname = NULL;
198 200
199 cifs_sb = CIFS_SB(dentry->d_inode->i_sb); 201 cifs_sb = CIFS_SB(dentry->d_inode->i_sb);
200 mountdata = compose_mount_options(cifs_sb->mountdata, 202 mountdata = compose_mount_options(cifs_sb->mountdata,
@@ -278,7 +280,7 @@ static int add_mount_helper(struct vfsmount *newmnt, struct nameidata *nd,
278 return err; 280 return err;
279} 281}
280 282
281void dump_referral(const struct dfs_info3_param *ref) 283static void dump_referral(const struct dfs_info3_param *ref)
282{ 284{
283 cFYI(1, ("DFS: ref path: %s", ref->path_name)); 285 cFYI(1, ("DFS: ref path: %s", ref->path_name));
284 cFYI(1, ("DFS: node path: %s", ref->node_name)); 286 cFYI(1, ("DFS: node path: %s", ref->node_name));