bcachefs: New on disk format to fix reflink_p pointers
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 19 Oct 2021 21:30:16 +0000 (17:30 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:14 +0000 (17:09 -0400)
commitbfe88863cf3063204fc49a04307fa6635554d6e3
tree9a4450a72e868234cf45822312ced571efab3a61
parentb71717dac64d76879ba3c70cfcfccf57991205f8
bcachefs: New on disk format to fix reflink_p pointers

We had a bug where reflink_p pointers weren't being initialized to 0,
and when we started using the second word, things broke badly.

This patch revs the on disk format version and adds cleanup code to zero
out the second word of reflink_p pointers before we start using it.

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