reiserfs_add_entry(): get rid of pointless namelen checks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Nov 2023 22:08:50 +0000 (17:08 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Dec 2023 17:53:25 +0000 (12:53 -0500)
commit3a1613672e859b85cf87bbe7569552b55612a0f5
tree9c9a912d5e268e1ce1d8ed9f9281278ee5910366
parentb64b0732c3eec11783dd6bb12757dc04395a73e1
reiserfs_add_entry(): get rid of pointless namelen checks

In all cases namelen is ->d_name.len of some dentry; moreover, a dentry
that has passed ->lookup() without triggering ENAMETOOLONG check there.
The comment next to these checks is either a rudiment of some other
check that used to be there once upon a time, or an attempt to come up
with the possible reason for that check (well, more like "why does
ext3 do it?")

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