summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-11-20 19:33:32 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2016-12-05 19:01:16 -0500
commit5b5577e4ebbd63de1a774963a373d851857e980a (patch)
tree8b51fd9574ba975bad670c7d77fb80b56ebd3554
parent71215a75ceddf38ba9d4563481da8dd943de10fc (diff)
downloadlinux-stable-5b5577e4ebbd63de1a774963a373d851857e980a.tar.gz
linux-stable-5b5577e4ebbd63de1a774963a373d851857e980a.tar.bz2
linux-stable-5b5577e4ebbd63de1a774963a373d851857e980a.zip
autofs: constify find_autofs_mount() callback
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/autofs4/dev-ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c
index fc09eb77ddf3..dfc6f49ee597 100644
--- a/fs/autofs4/dev-ioctl.c
+++ b/fs/autofs4/dev-ioctl.c
@@ -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);