]> git.baikalelectronics.ru Git - kernel.git/commit
autofs: make dentry info count consistent
authorIan Kent <raven@themaw.net>
Fri, 8 Jul 2022 01:43:06 +0000 (09:43 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:42 +0000 (17:31 -0700)
commitf5d4ed580585c66e2299ec8a3e11eb608900c166
tree31f79d9d5101714b3bbc32851b5845aaa039a22d
parentea0d07e4c2c099a272535dfb98954994ec126c6a
autofs: make dentry info count consistent

If an autofs dentry is a mount root directory there's no ->mkdir() call to
set its count to one.

To make the dentry info count consistent for all autofs dentries set count
to one when the dentry info struct is allocated.

Link: https://lkml.kernel.org/r/165724458671.30914.2902424437132835325.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>
fs/autofs/inode.c
fs/autofs/root.c