]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: add helpers name_is_dot{,dot,_dotdot}
authorAmir Goldstein <amir73il@gmail.com>
Wed, 28 Jan 2026 13:24:05 +0000 (14:24 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 29 Jan 2026 09:06:59 +0000 (10:06 +0100)
commit55fb177d3a0346106974749374ae2191ba250825
treea78480682266c70e3d974131fd121c3e17c8141c
parent1992330d90dd766fcf1730fd7bf2d6af65370ac4
fs: add helpers name_is_dot{,dot,_dotdot}

Rename the helper is_dot_dotdot() into the name_ namespace
and add complementary helpers to check for dot and dotdot
names individually.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://patch.msgid.link/20260128132406.23768-3-amir73il@gmail.com
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/crypto/fname.c
fs/ecryptfs/crypto.c
fs/exportfs/expfs.c
fs/f2fs/dir.c
fs/f2fs/hash.c
fs/namei.c
fs/overlayfs/readdir.c
fs/smb/server/vfs.c
include/linux/fs.h