mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
NFSD: Replace isdotent() macro
The VFS provides name_is_dot_dotdot() as the canonical helper for recognizing the "." and ".." directory entries, and fs/ already uses it widely. nfsd has instead carried its own open-coded isdotent() macro that computes the same predicate for non-empty names, a needless duplicate of shared functionality. The macro reads the first name byte without first confirming the name is non-empty; name_is_dot_dotdot() tests the length first, so it never touches a zero-length buffer. Convert every isdotent() call site to the generic helper and remove the macro. Reviewed-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260621213535.539450-1-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
This commit is contained in:
parent
2f3e6638ae
commit
de9cf60040
7 changed files with 13 additions and 15 deletions
Loading…
Add table
Add a link
Reference in a new issue