summaryrefslogtreecommitdiff
path: root/libbcachefs/extents.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-01-06 13:49:52 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2020-01-06 13:49:52 -0500
commitab2f1ec24f5307b0cf1e3c4ad19bf350d9f54d9f (patch)
treef330335854e739590c3df1b322304c47ba0611f7 /libbcachefs/extents.c
parent304691592738dc272f4150107b54a53ab43fc8be (diff)
Update bcachefs sources to d763e8ab17 bcachefs: Don't lose needs_whiteout in overwrite path
Diffstat (limited to 'libbcachefs/extents.c')
-rw-r--r--libbcachefs/extents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs/extents.c b/libbcachefs/extents.c
index ca208b06..c4b0b9e1 100644
--- a/libbcachefs/extents.c
+++ b/libbcachefs/extents.c
@@ -228,7 +228,8 @@ void bch2_extent_debugcheck(struct bch_fs *c, struct bkey_s_c k)
struct extent_ptr_decoded p;
char buf[160];
- if (!test_bit(BCH_FS_INITIAL_GC_DONE, &c->flags))
+ if (!test_bit(JOURNAL_REPLAY_DONE, &c->journal.flags) ||
+ !test_bit(BCH_FS_INITIAL_GC_DONE, &c->flags))
return;
if (!percpu_down_read_trylock(&c->mark_lock))