__ocfs2_add_entry(), ocfs2_prepare_dir_for_insert(): namelen checks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Nov 2023 22:03:14 +0000 (17:03 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Dec 2023 17:53:21 +0000 (12:53 -0500)
commitb64b0732c3eec11783dd6bb12757dc04395a73e1
treeb8adef19a259741b511e87c082308fe24cbeda35
parent556f38bf457fee5d9f3ede65b67fd91dd2ea2ca1
__ocfs2_add_entry(), ocfs2_prepare_dir_for_insert(): namelen checks

namelen can't be zero; neither when it's coming from dentry name,
nor when dealing with orphans (in ocfs2_orphan_add() and
__ocfs2_prepare_orphan_dir()).  Rudiment of old ext2 pointless
check, long gone in ext2 itself...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/dir.c