qstr: constify instances in vfat
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2016 02:43:14 +0000 (22:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Jul 2016 16:25:47 +0000 (12:25 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fat/namei_vfat.c

index 7092584..1d16ed5 100644 (file)
@@ -652,8 +652,8 @@ out_free:
        return err;
 }
 
-static int vfat_add_entry(struct inode *dir, struct qstr *qname, int is_dir,
-                         int cluster, struct timespec *ts,
+static int vfat_add_entry(struct inode *dir, const struct qstr *qname,
+                         int is_dir, int cluster, struct timespec *ts,
                          struct fat_slot_info *sinfo)
 {
        struct msdos_dir_slot *slots;
@@ -688,7 +688,7 @@ cleanup:
        return err;
 }
 
-static int vfat_find(struct inode *dir, struct qstr *qname,
+static int vfat_find(struct inode *dir, const struct qstr *qname,
                     struct fat_slot_info *sinfo)
 {
        unsigned int len = vfat_striptail_len(qname);