]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vfs: link_path_walk: move more of the name hashing into hash_name()
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 17 Jun 2024 16:05:52 +0000 (09:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 7 Jul 2024 17:27:27 +0000 (10:27 -0700)
commit13694f0dbc077f28fcb613e7e37018d87997abb9
tree03a26e7e5a8e82b2ee3cfbd16f182249fea9e025
parent58b0afa038bb404ff82b358b68db5ffa8f53c404
vfs: link_path_walk: move more of the name hashing into hash_name()

This avoids having to return the length of the component entirely by
just doing all of the name processing in hash_name().  We can just
return the end of the path component, and a flag for the DOT and DOTDOT
cases.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/namei.c