cifs: constify path argument of ->make_node()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Mar 2021 05:38:53 +0000 (01:38 -0400)
committerSteve French <stfrench@microsoft.com>
Sun, 25 Apr 2021 21:28:23 +0000 (16:28 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/smb1ops.c
fs/cifs/smb2ops.c

index 18a5505a506cb7ba453b7c680e39d92197af3544..034b919f091d811996e752ab4e92ecdf5edb2d03 100644 (file)
@@ -495,7 +495,7 @@ struct smb_version_operations {
                         struct inode *inode,
                         struct dentry *dentry,
                         struct cifs_tcon *tcon,
-                        char *full_path,
+                        const char *full_path,
                         umode_t mode,
                         dev_t device_number);
        /* version specific fiemap implementation */
index 85fa254c7a6b85c346c5da1c440b69f5c42ccd1c..3b83839fc2c276d02a5e9e52fdf5f839c2b9465f 100644 (file)
@@ -1025,7 +1025,7 @@ cifs_can_echo(struct TCP_Server_Info *server)
 static int
 cifs_make_node(unsigned int xid, struct inode *inode,
               struct dentry *dentry, struct cifs_tcon *tcon,
-              char *full_path, umode_t mode, dev_t dev)
+              const char *full_path, umode_t mode, dev_t dev)
 {
        struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
        struct inode *newinode = NULL;
index f703204fb185dc584023b2674fdea826d4a6f679..81b1e0eca9b9671bd766992d54ffe2e6980c8e03 100644 (file)
@@ -4968,7 +4968,7 @@ smb2_next_header(char *buf)
 static int
 smb2_make_node(unsigned int xid, struct inode *inode,
               struct dentry *dentry, struct cifs_tcon *tcon,
-              char *full_path, umode_t mode, dev_t dev)
+              const char *full_path, umode_t mode, dev_t dev)
 {
        struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
        int rc = -EPERM;