bfs_add_entry(): get rid of pointless ->d_name.len checks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Nov 2023 21:56:19 +0000 (16:56 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Dec 2023 17:09:32 +0000 (12:09 -0500)
commit743cde7419bc9580a71a7e6f15eda66d6d8e71c2
tree6624acb7af40b44856c4bf08ae68c0edd10e5d07
parent96931dfe437cbd480fcfa72bd05b41b9ef15522e
bfs_add_entry(): get rid of pointless ->d_name.len checks

First of all, any dentry getting here would have passed bfs_lookup(),
so it it passed ENAMETOOLONG check there, there's no need to
repeat it.  And we are not going to get dentries with zero name length -
that check ultimately comes from ext2 and it's as pointless here as it
used to be there.

Acked-by: Tigran Aivazian <aivazian.tigran@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/bfs/dir.c