mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 11:45:53 -05:00
autofs - constify misc struct path instances
Signed-off-by: Ian Kent <[email protected]> Cc: Al Viro <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: Omar Sandoval <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
f74e7b33c3
commit
455e8f1030
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue