Commit 455e8f10 authored by Ian Kent's avatar Ian Kent Committed by Al Viro

autofs - constify misc struct path instances

Signed-off-by: default avatarIan 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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f74e7b33
...@@ -593,7 +593,7 @@ int autofs4_do_expire_multi(struct super_block *sb, struct vfsmount *mnt, ...@@ -593,7 +593,7 @@ int autofs4_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
if (dentry) { if (dentry) {
struct autofs_info *ino = autofs4_dentry_ino(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 /* This is synchronous because it makes the daemon a
* little easier * little easier
......
...@@ -297,7 +297,7 @@ static int do_expire_wait(const struct path *path, bool rcu_walk) ...@@ -297,7 +297,7 @@ static int do_expire_wait(const struct path *path, bool rcu_walk)
if (!expiring) if (!expiring)
return autofs4_expire_wait(path, rcu_walk); return autofs4_expire_wait(path, rcu_walk);
else { 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 * If we are racing with expire the request might not
* be quite complete, but the directory has been removed * be quite complete, but the directory has been removed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment