mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 21:45:08 -04:00
bcachefs: bch2_data_update_index_update() -> bch2_trans_run()
Convert to use the standard helper Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
struct bch_fs *c = op->c;
|
||||
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;
|
||||
return bch2_trans_run(op->c, __bch2_data_update_index_update(&trans, op));
|
||||
}
|
||||
|
||||
void bch2_data_update_read_done(struct data_update *m,
|
||||
|
||||
Reference in New Issue
Block a user