]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: bch2_str_hash_check_key() now checks inode hash info
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Dec 2024 02:47:34 +0000 (21:47 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:23 +0000 (01:36 -0500)
commit6ea607ca61475f9281191dab9d5f8a61baee1c4f
tree623dfcd9804eb6c1fca456809c420cdc3d941c6d
parent644457ed8315c8018a5a8c16fdee9acce5cfef27
bcachefs: bch2_str_hash_check_key() now checks inode hash info

Versions of the same inode in different snapshots must have the same
hash info; this is critical for lookups to work correctly.

We're going to be running the str_hash checks online, at readdir or
xattr list time, so we now need str_hash_check_key() to check for inode
hash seed mismatches, since it won't be run right after check_inodes().

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