aboutsummaryrefslogtreecommitdiff
path: root/fs/cifs/link.c
diff options
context:
space:
mode:
authorGravatar Al Viro <viro@zeniv.linux.org.uk> 2021-03-18 15:47:35 -0400
committerGravatar Steve French <stfrench@microsoft.com> 2021-04-25 16:28:23 -0500
commit8e33cf20ceb7f6d7a7e039f9f82a0cd1f3a6f964 (patch)
treee72144e13f84a8f6ae89ad5b558ea39289aa7b03 /fs/cifs/link.c
parentcifs: constify pathname arguments in a bunch of helpers (diff)
downloadlinux-8e33cf20ceb7f6d7a7e039f9f82a0cd1f3a6f964.tar.gz
linux-8e33cf20ceb7f6d7a7e039f9f82a0cd1f3a6f964.tar.bz2
linux-8e33cf20ceb7f6d7a7e039f9f82a0cd1f3a6f964.zip
cifs: make build_path_from_dentry() return const char *
... and adjust the callers. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r--fs/cifs/link.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c
index 7c5878a645d9..18e0e31a6d39 100644
--- a/fs/cifs/link.c
+++ b/fs/cifs/link.c
@@ -510,8 +510,8 @@ cifs_hardlink(struct dentry *old_file, struct inode *inode,
{
int rc = -EACCES;
unsigned int xid;
- char *from_name = NULL;
- char *to_name = NULL;
+ const char *from_name = NULL;
+ const char *to_name = NULL;
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
struct tcon_link *tlink;
struct cifs_tcon *tcon;
@@ -600,7 +600,7 @@ cifs_get_link(struct dentry *direntry, struct inode *inode,
{
int rc = -ENOMEM;
unsigned int xid;
- char *full_path = NULL;
+ const char *full_path = NULL;
char *target_path = NULL;
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
struct tcon_link *tlink = NULL;
@@ -669,7 +669,7 @@ cifs_symlink(struct user_namespace *mnt_userns, struct inode *inode,
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
struct tcon_link *tlink;
struct cifs_tcon *pTcon;
- char *full_path = NULL;
+ const char *full_path = NULL;
struct inode *newinode = NULL;
xid = get_xid();