linux/fs/autofs
Ian Kent a4a8730387 autofs: use dentry info count instead of simple_empty()
The dentry info.  field count is used to check if a dentry is in use
during expire.  But, to be used for this the count field must account for
the presence of child dentries in a directory dentry.

Therefore it can also be used to check for an empty directory dentry which
can be done without having to to take an additional lock or account for
the presence of a readdir cursor dentry as is done by simple_empty().

Link: https://lkml.kernel.org/r/165724459238.30914.1504611159945950108.stgit@donald.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-07-17 17:31:42 -07:00
..
autofs_i.h autofs: use dentry info count instead of simple_empty() 2022-07-17 17:31:42 -07:00
dev-ioctl.c file: Replace ksys_close with close_fd 2020-12-10 12:42:59 -06:00
expire.c autofs: use dentry info count instead of simple_empty() 2022-07-17 17:31:42 -07:00
init.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 83 2019-05-24 17:37:52 +02:00
inode.c autofs: make dentry info count consistent 2022-07-17 17:31:42 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
root.c autofs: use dentry info count instead of simple_empty() 2022-07-17 17:31:42 -07:00
symlink.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 83 2019-05-24 17:37:52 +02:00
waitq.c autofs: fix wait name hash calculation in autofs_wait() 2021-10-20 21:09:02 -04:00