]> www.infradead.org Git - users/jedix/linux-maple.git/commit
VFS/autofs: try_lookup_one_len() does not need any locks
authorNeilBrown <neil@brown.name>
Thu, 13 Mar 2025 22:32:54 +0000 (09:32 +1100)
committerChristian Brauner <brauner@kernel.org>
Tue, 18 Mar 2025 14:34:27 +0000 (15:34 +0100)
commit514b68711164b557342bc6169d898576fa905c0f
tree17d5419e6f6a4f2383409faf56d5d48b5569790b
parent611851010c74046c0bc2b0461b72a6fae81c16d0
VFS/autofs: try_lookup_one_len() does not need any locks

try_lookup_one_len() is identical to lookup_one_unlocked() except that
it doesn't include the call to lookup_slow().  The latter doesn't need
the inode to be locked, so the former cannot either.

So fix the documentation, remove the WARN_ON and fix the only caller to
not take the lock.

Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/174190517441.9342.5956460781380903128@noble.neil.brown.name
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/autofs/dev-ioctl.c
fs/namei.c