summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-06-21 17:35:35 -0400
committerChuck Lever <cel@kernel.org>2026-08-10 09:54:35 -0400
commitde9cf600400b8243bf017141f91465e905687db0 (patch)
tree0ad3837c682a6f3518ec7d8d06bab7d4e9d51525 /tools/perf/scripts/python/bin/stackcollapse-record
parent2f3e6638aebc0ab8afb8b4e9816ea9a1cad85378 (diff)
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>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions