bcachefs: bch2_mark_snapshot() now called like other triggers
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 17 Feb 2023 05:39:12 +0000 (00:39 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:53 +0000 (17:09 -0400)
commit19d6521964ed0439a7a03776d8cf0451afb63c1d
tree45fa4b95c444911f1df7580d147fe864c8ac432f
parent2ffe3ad62dafac036c523204c6e2e2f39b23cb6f
bcachefs: bch2_mark_snapshot() now called like other triggers

This fixes a bug where bch2_mark_snapshot() wasn't called for existing
snapshot nodes being updated when child nodes were added.

This led to the data update path thinking the key being updated was for
a snapshot that didn't have children, causing it to fail to insert
whiteouts when splitting existing extents.

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