Commit 039c45fe authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: bch2_data_update_index_update() -> bch2_trans_run()

Convert to use the standard helper
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e07cb974
...@@ -296,15 +296,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans, ...@@ -296,15 +296,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans,
int bch2_data_update_index_update(struct bch_write_op *op) int bch2_data_update_index_update(struct bch_write_op *op)
{ {
struct bch_fs *c = op->c; return bch2_trans_run(op->c, __bch2_data_update_index_update(&trans, op));
struct btree_trans trans;
int ret;
bch2_trans_init(&trans, c, BTREE_ITER_MAX, 1024);
ret = __bch2_data_update_index_update(&trans, op);
bch2_trans_exit(&trans);
return ret;
} }
void bch2_data_update_read_done(struct data_update *m, void bch2_data_update_read_done(struct data_update *m,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment