summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-03-27 21:15:29 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2021-03-27 21:15:29 -0400
commitef4ec8dc9af76d7646c00fd223aa9209d3c89124 (patch)
tree7978ccf23cf23296d41a2ab944c24b0423763ad3
parenta3e530e0d890e081ff3d93ca2b172a1504124a81 (diff)
fixup! bcachefs: Start using bpos.snapshot field
-rw-r--r--fs/bcachefs/tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/tests.c b/fs/bcachefs/tests.c
index 14b85dc22342..7507b6bcc13f 100644
--- a/fs/bcachefs/tests.c
+++ b/fs/bcachefs/tests.c
@@ -483,6 +483,7 @@ static int rand_insert(struct bch_fs *c, u64 nr)
for (i = 0; i < nr; i++) {
bkey_cookie_init(&k.k_i);
k.k.p.offset = test_rand();
+ k.k.p.snapshot = U32_MAX;
ret = __bch2_trans_do(&trans, NULL, NULL, 0,
__bch2_btree_insert(&trans, BTREE_ID_xattrs, &k.k_i));