]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c9703c8dd5dc1395d581ada8e01b7fec16f4935
tree76f7d6755f9f8f163c7556fa29f7bf913fd46b2a
parent2c7fed18eea41ed613d3c649ae2fe6365ee8b54f
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