]> git.karo-electronics.de Git - linux-beck.git/commitdiff
autofs - constify misc struct path instances
authorIan Kent <ikent@redhat.com>
Mon, 28 Nov 2016 02:11:59 +0000 (10:11 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 4 Dec 2016 01:51:50 +0000 (20:51 -0500)
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs4/expire.c
fs/autofs4/root.c

index 9c352da24444f6c2ae82635ac71f2ac1e1a22813..13178bf2c4315ad2f9816e4102e49f5e06737d80 100644 (file)
@@ -593,7 +593,7 @@ int autofs4_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
 
        if (dentry) {
                struct autofs_info *ino = autofs4_dentry_ino(dentry);
-               struct path path = { .mnt = mnt, .dentry = dentry };
+               const struct path path = { .mnt = mnt, .dentry = dentry };
 
                /* This is synchronous because it makes the daemon a
                 * little easier
index ce4e6216a5f0aa32ecdace8cd9dee0cacff5458c..82e8f6edfb48d0e8670dd58e3fbdcfb4b5ceb85d 100644 (file)
@@ -297,7 +297,7 @@ static int do_expire_wait(const struct path *path, bool rcu_walk)
        if (!expiring)
                return autofs4_expire_wait(path, rcu_walk);
        else {
-               struct path this = { .mnt = path->mnt, .dentry = expiring };
+               const struct path this = { .mnt = path->mnt, .dentry = expiring };
                /*
                 * If we are racing with expire the request might not
                 * be quite complete, but the directory has been removed