]> Gentwo Git Trees - linux/.git/commit
convert autofs
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 May 2024 16:44:53 +0000 (12:44 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Nov 2025 06:35:05 +0000 (01:35 -0500)
commitb85d6b24192463c9969ed6d3a111498af465275f
tree5dbad68603ac15f051d703b002859cfb97e92737
parent4c7d25094f5caa145d5e574d64fdad784caecfdf
convert autofs

creation/removal is via normal VFS paths; make ->mkdir() and ->symlink()
use d_make_persistent(); ->rmdir() and ->unlink() - d_make_discardable()
instead of dput() and that's it.

d_make_persistent() works for unhashed just fine...

Note that only persistent dentries are ever hashed there; unusual absense
of ->d_delete() in dentry_operations is due to that - anything that has
refcount reach 0 will be unhashed there, so it won't get to checking
->d_delete anyway.

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