autofs: get rid of pointless checks around ->count handling
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 18 Sep 2019 03:23:08 +0000 (23:23 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 18 Sep 2019 03:23:08 +0000 (23:23 -0400)
commit41ca19740a0e772eff1f9ba67293649feb836662
tree0bb26f1187e8c6cb5be54af68e3b68a587f8d864
parente509d6e9c1ab54af257d4ed95b30d41e3d786857
autofs: get rid of pointless checks around ->count handling

* IS_ROOT can't be true for unlink or rmdir victim
* any positive autofs dentry has non-NULL autofs_dentry_ino()
* autofs symlink can't have ->count other than 1
* autofs empty directory can't have ->count other than 1

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