diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-06-14 16:35:03 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:06 -0400 |
commit | b89726ab86aab15ea8526fb365da6a0f5d474241 (patch) | |
tree | 8e9bbbeb6ab085e431817f60cc3776658e499a91 /fs/bcachefs/tests.c | |
parent | 8ee529e9c16b9c72293794f441270e954a9c6508 (diff) | |
download | lwn-b89726ab86aab15ea8526fb365da6a0f5d474241.tar.gz lwn-b89726ab86aab15ea8526fb365da6a0f5d474241.zip |
bcachefs: Kill __btree_delete_at()
With trans->updates2 gone, we can now drop this helper and use
bch2_btree_delete_at() instead.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/tests.c')
-rw-r--r-- | fs/bcachefs/tests.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/bcachefs/tests.c b/fs/bcachefs/tests.c index 87208da5e350..fa9f600fc17c 100644 --- a/fs/bcachefs/tests.c +++ b/fs/bcachefs/tests.c @@ -54,14 +54,16 @@ static int test_delete(struct bch_fs *c, u64 nr) } pr_info("deleting once"); - ret = bch2_btree_delete_at(&trans, iter, 0); + ret = __bch2_trans_do(&trans, NULL, NULL, 0, + bch2_btree_delete_at(&trans, iter, 0)); if (ret) { bch_err(c, "delete error (first) in test_delete: %i", ret); goto err; } pr_info("deleting twice"); - ret = bch2_btree_delete_at(&trans, iter, 0); + ret = __bch2_trans_do(&trans, NULL, NULL, 0, + bch2_btree_delete_at(&trans, iter, 0)); if (ret) { bch_err(c, "delete error (second) in test_delete: %i", ret); goto err; @@ -101,7 +103,8 @@ static int test_delete_written(struct bch_fs *c, u64 nr) bch2_journal_flush_all_pins(&c->journal); - ret = bch2_btree_delete_at(&trans, iter, 0); + ret = __bch2_trans_do(&trans, NULL, NULL, 0, + bch2_btree_delete_at(&trans, iter, 0)); if (ret) { bch_err(c, "delete error in test_delete_written: %i", ret); goto err; |