follow_automount(): get rid of dead^Wstillborn code
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 11 Jan 2020 16:27:46 +0000 (11:27 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Feb 2020 19:43:55 +0000 (14:43 -0500)
commit25e195aa1e607f129ab912d29fcfc79239703307
tree76f7d6755f9f8f163c7556fa29f7bf913fd46b2a
parent26df6034fdb211857e069e7b07d25a368da646df
follow_automount(): get rid of dead^Wstillborn code

1) no instances of ->d_automount() have ever made use of the "return
ERR_PTR(-EISDIR) if you don't feel like mounting anything" - that's
a rudiment of plans that got superseded before the thing went into
the tree.  Despite the comment in follow_automount(), autofs has
never done that.

2) if there's no ->d_automount() in dentry_operations, filesystems
should not set DCACHE_NEED_AUTOMOUNT in the first place.  None have
ever done so...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
fs/namespace.c