autofs: constify find_autofs_mount() callback
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 Nov 2016 00:33:32 +0000 (19:33 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 6 Dec 2016 00:01:16 +0000 (19:01 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs4/dev-ioctl.c

index fc09eb77ddf37a4ae27af402553220e4287af92e..dfc6f49ee59771a12093d3a9e26f147cfb781637 100644 (file)
@@ -204,7 +204,7 @@ static int autofs_dev_ioctl_protosubver(struct file *fp,
 /* Find the topmost mount satisfying test() */
 static int find_autofs_mount(const char *pathname,
                             struct path *res,
-                            int test(struct path *path, void *data),
+                            int test(const struct path *path, void *data),
                             void *data)
 {
        struct path path;
@@ -230,12 +230,12 @@ static int find_autofs_mount(const char *pathname,
        return err;
 }
 
-static int test_by_dev(struct path *path, void *p)
+static int test_by_dev(const struct path *path, void *p)
 {
        return path->dentry->d_sb->s_dev == *(dev_t *)p;
 }
 
-static int test_by_type(struct path *path, void *p)
+static int test_by_type(const struct path *path, void *p)
 {
        struct autofs_info *ino = autofs4_dentry_ino(path->dentry);