]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Add hash seed, type to inode_to_text()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 28 Sep 2024 18:44:06 +0000 (14:44 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 18 Oct 2024 04:49:48 +0000 (00:49 -0400)
commitd8e879377ffb37ba0d3afa0c92bd3b88b849a0a9
tree5d7e5cc907ab8a7459d4a80060a929c3087ea527
parent78cf0ae636a55e0bef99308d305d4e1f8a6c4147
bcachefs: Add hash seed, type to inode_to_text()

This helped with discovering some filesystem corruption fsck has having
trouble with: the str_hash type had gotten flipped on one snapshot's
version of an inode.

All versions of a given inode number have the same hash seed and hash
type, since lookups will be done with a single hash/seed and type and
see dirents/xattrs from multiple snapshots.

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