Commit 572ad769 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix cached sectors not being updated on invalidate

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4ee202e2
......@@ -620,11 +620,12 @@ static inline int do_btree_insert_at(struct btree_trans *trans,
!update_triggers_transactional(trans, i))
bch2_mark_update(trans, i, &fs_usage->u, 0);
if (fs_usage && trans->fs_usage_deltas) {
if (fs_usage && trans->fs_usage_deltas)
bch2_replicas_delta_list_apply(c, &fs_usage->u,
trans->fs_usage_deltas);
if (fs_usage)
bch2_trans_fs_usage_apply(trans, fs_usage);
}
if (likely(!(trans->flags & BTREE_INSERT_NOMARK)) &&
unlikely(c->gc_pos.phase))
......
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