summaryrefslogtreecommitdiffstats
path: root/fs/autofs4
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2011-03-25 01:51:25 +0800
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-24 14:54:34 -0400
commit83fb96bfc792e5ca693e53f7fd878d51b8493da8 (patch)
tree315b3d418e9e4cf046195a6fbe12e9e9537d54ee /fs/autofs4
parentd4a85e35d1465da055264407d8395e84483084e6 (diff)
downloadop-kernel-dev-83fb96bfc792e5ca693e53f7fd878d51b8493da8.zip
op-kernel-dev-83fb96bfc792e5ca693e53f7fd878d51b8493da8.tar.gz
autofs4 - fix d_manage() return on rcu-walk
The daemon never needs to block and, in the rcu-walk case an error return isn't used, so always return zero. Signed-off-by: Ian Kent <raven@themaw.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/autofs4')
-rw-r--r--fs/autofs4/root.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index 3a93d35..ebbfa0c 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -444,6 +444,8 @@ int autofs4_d_manage(struct dentry *dentry, bool rcu_walk)
/* The daemon never waits. */
if (autofs4_oz_mode(sbi)) {
+ if (rcu_walk)
+ return 0;
if (!d_mountpoint(dentry))
return -EISDIR;
return 0;
OpenPOWER on IntegriCloud