bcachefs: Fix insert_snapshot_whiteouts()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 17 Feb 2023 04:42:09 +0000 (23:42 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:53 +0000 (17:09 -0400)
commitf2a53270c7d6bceae5441ed180516d3b76799680
tree07258e950c5ec9771ffe75a0cff325407fe0049c
parent19d6521964ed0439a7a03776d8cf0451afb63c1d
bcachefs: Fix insert_snapshot_whiteouts()

 - We were failing to set the key type on the whiteouts it was creating,
   oops.

 - Also, we need to create whiteouts when generating front splits, not
   just back splits.

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