bcachefs: btree_update_interior.c prep for backpointers
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 14 Apr 2022 19:37:16 +0000 (15:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:32 +0000 (17:09 -0400)
commit7419646b254a599d7881e7815fc5e61b18c94b7e
treeca7b92a73a715a2cfaa18c5a013d812723a269b1
parente1b8f5f5ca247f65211ca4e3e0e493dd3a54c98e
bcachefs: btree_update_interior.c prep for backpointers

Previously, btree_update_interior.c passed keys to bch2_trans_mark_*
that hadn't been fully initialized - they didn't have the key field
filled out, just the value.

With backpointers, we need to make sure keys are fully initialized
before marking them - because the backpointer points back to the
original key.

This patch tweaks the interior update paths to fix this.

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