qstr: constify instances in adfs
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2016 03:23:32 +0000 (23:23 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Jul 2016 16:25:53 +0000 (12:25 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/adfs/dir.c

index fd4cf2c48e48e3d16b3fc525373a65ecb5cad6cc..62ee2cb8163baf3c1e5fa7ff8e2ecb1c618cedd3 100644 (file)
@@ -101,7 +101,7 @@ out:
 }
 
 static int
-adfs_match(struct qstr *name, struct object_info *obj)
+adfs_match(const struct qstr *name, struct object_info *obj)
 {
        int i;
 
@@ -126,7 +126,7 @@ adfs_match(struct qstr *name, struct object_info *obj)
 }
 
 static int
-adfs_dir_lookup_byname(struct inode *inode, struct qstr *name, struct object_info *obj)
+adfs_dir_lookup_byname(struct inode *inode, const struct qstr *name, struct object_info *obj)
 {
        struct super_block *sb = inode->i_sb;
        const struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir;