Skip to content

Commit

Permalink
autofs4 - fix d_manage() return on rcu-walk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Kent authored and Al Viro committed Mar 24, 2011
1 parent d4a85e3 commit 83fb96b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/autofs4/root.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 83fb96b

Please sign in to comment.