diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-05 23:21:18 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-05 23:21:18 +0300 |
commit | cf979fca9a05d7d0b116257e5c4dc12b6bb7eb3a (patch) | |
tree | b58d8316f84b78eadf68a54706afbf7fa99ba639 /fs/bcachefs/tests.c | |
parent | a6c4162d844dae4dbfea1bf9ecffcb852d3ed615 (diff) | |
download | linux-cf979fca9a05d7d0b116257e5c4dc12b6bb7eb3a.tar.xz |
bcachefs: fix rand_delete unit test
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/tests.c')
-rw-r--r-- | fs/bcachefs/tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/tests.c b/fs/bcachefs/tests.c index b3fe9fc57747..bfec656f94c0 100644 --- a/fs/bcachefs/tests.c +++ b/fs/bcachefs/tests.c @@ -672,7 +672,7 @@ static int __do_delete(struct btree_trans *trans, struct bpos pos) bch2_trans_iter_init(trans, &iter, BTREE_ID_xattrs, pos, BTREE_ITER_INTENT); - k = bch2_btree_iter_peek(&iter); + k = bch2_btree_iter_peek_upto(&iter, POS(0, U64_MAX)); ret = bkey_err(k); if (ret) goto err; |