From: Ian Kent Date: Thu, 24 Mar 2011 17:51:25 +0000 (+0800) Subject: autofs4 - fix d_manage() return on rcu-walk X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=83fb96bfc792e5ca693e53f7fd878d51b8493da8;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Al Viro --- diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 3a93d3552486..ebbfa0ce6d7b 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;