summaryrefslogtreecommitdiff
path: root/libbcachefs/data_update.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-10-17 22:30:32 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-10-20 19:07:51 -0400
commit553d6f107a3e90d451fcac8a88c07746dcb340cf (patch)
tree9cb62d5dcdd1ef09815cea97ccacefe348703394 /libbcachefs/data_update.c
parent4f9293b045cf32dfc629ce300180d311aba8f53a (diff)
Update bcachefs sources to 1dbc147a6eb0 bcachefs: Add version check for bch_btree_ptr_v2.sectors_written validate
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/data_update.c')
-rw-r--r--libbcachefs/data_update.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbcachefs/data_update.c b/libbcachefs/data_update.c
index 462b1a2f..a6ee0bee 100644
--- a/libbcachefs/data_update.c
+++ b/libbcachefs/data_update.c
@@ -80,6 +80,7 @@ static bool bkey_nocow_lock(struct bch_fs *c, struct moving_context *ctxt, struc
if (ptr2 == ptr)
break;
+ ca = bch2_dev_have_ref(c, ptr2->dev);
bucket = PTR_BUCKET_POS(ca, ptr2);
bch2_bucket_nocow_unlock(&c->nocow_locks, bucket, 0);
}