Commit 7c4ca54a authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Don't skip triggers in fcollapse()

With backpointers this doesn't work anymore - backpointers always need
to be updated to point to the new extent position.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent 84c72755
......@@ -2894,13 +2894,7 @@ static long bchfs_fcollapse_finsert(struct bch_inode_info *inode,
next_pos = insert ? bkey_start_pos(&delete.k) : delete.k.p;
if (copy.k->k.size == k.k->size) {
/*
* If we're moving the entire extent, we can skip
* running triggers:
*/
trigger_flags |= BTREE_TRIGGER_NORUN;
} else {
if (copy.k->k.size != k.k->size) {
/* We might end up splitting compressed extents: */
unsigned nr_ptrs =
bch2_bkey_nr_ptrs_allocated(bkey_i_to_s_c(copy.k));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment