Update bcachefs sources to 58b77cfec6 bcachefs: improve btree_ptr_debugcheck()

This commit is contained in:
Kent Overstreet 2017-11-10 12:58:58 -09:00
parent 6d09cd7766
commit ea57dd8d48
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
2679158d6e268d1bbcebda4f2000a24683ae06e0
58b77cfec62e8cdf6c1f7863a5066356ab77e7ad

View File

@ -620,7 +620,8 @@ static void btree_ptr_debugcheck(struct bch_fs *c, struct btree *b,
do {
seq = read_seqcount_begin(&c->gc_pos_lock);
bad = gc_pos_cmp(c->gc_pos, gc_pos_btree_node(b)) > 0 &&
g->mark.data_type != BUCKET_BTREE;
(g->mark.data_type != BUCKET_BTREE ||
g->mark.dirty_sectors < c->opts.btree_node_size);
} while (read_seqcount_retry(&c->gc_pos_lock, seq));
err = "inconsistent";