bcachefs: Simplify hash table checks
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 7 Apr 2021 05:55:57 +0000 (01:55 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:59 +0000 (17:08 -0400)
commit7ac2c55e4dec9af38bd9447271944296a4a38814
tree86f5b6c8ca00152d6c3f78bf6246b23a0d39c1eb
parent5c16add5ad7897248ded54c34f65cb9479ca542a
bcachefs: Simplify hash table checks

Very early on there was a period where we were accidentally generating
dirents with trailing garbage; we've since dropped support for
filesystems that old and the fsck code can be dropped.

Also, this patch switches to a simpler algorithm for checking hash
tables. It's less efficient on hash collision - but with 64 bit keys,
those are very rare.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c