Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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