diff options
author | Ian Kent <[email protected]> | 2022-07-08 09:43:12 +0800 |
---|---|---|
committer | akpm <[email protected]> | 2022-07-17 17:31:42 -0700 |
commit | a4a87303874c1a7d49cc18a8fe33676b0002ffbf (patch) | |
tree | 5e8cfd0542d3ac231095d07b392f656c71b604c7 /scripts/gdb/linux/lists.py | |
parent | 9ccbac76e71de411b9c4beea9d91ba98f3fad690 (diff) |
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/[email protected]
Signed-off-by: Ian Kent <[email protected]>
Cc: Al Viro <[email protected]>
Cc: David Howells <[email protected]>
Cc: Miklos Szeredi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions