Skip to content
Unverified Commit 06c56740 authored by NeilBrown's avatar NeilBrown Committed by Christian Brauner
Browse files

Use try_lookup_noperm() instead of d_hash_and_lookup() outside of VFS



try_lookup_noperm() and d_hash_and_lookup() are nearly identical.  The
former does some validation of the name where the latter doesn't.
Outside of the VFS that validation is likely valuable, and having only
one exported function for this task is certainly a good idea.

So make d_hash_and_lookup() local to VFS files and change all other
callers to try_lookup_noperm().  Note that the arguments are swapped.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/20250319031545.2999807-6-neil@brown.name


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent fa6fe07d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment