]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
VFS: note error returns in documentation for various lookup functions
authorNeilBrown <neil@brown.name>
Tue, 24 Feb 2026 22:16:46 +0000 (09:16 +1100)
committerChristian Brauner <brauner@kernel.org>
Fri, 6 Mar 2026 09:24:11 +0000 (10:24 +0100)
commitc025a53314127b8cd236201bed765be0df5cf1eb
tree5fbfb5a4f4efc35c6814e282652bf2b8f3205eb8
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
VFS: note error returns in documentation for various lookup functions

Darrick recently noted that try_lookup_noperm() is documented as
"Look up a dentry by name in the dcache, returning NULL if it does not
currently exist." but it can in fact return an error.

So update the documentation for that and related functions.

Link: https://lore.kernel.org/all/20260218234917.GA6490@frogsfrogsfrogs/
Cc: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260224222542.3458677-2-neilb@ownmail.net
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namei.c