From: Kent Overstreet Date: Sun, 26 Feb 2023 22:12:05 +0000 (-0500) Subject: bcachefs: bch2_data_update_index_update() -> bch2_trans_run() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=039c45feef4f9a46aa0ee0b5ecfafdfd4c0dde76;p=linux.git bcachefs: bch2_data_update_index_update() -> bch2_trans_run() Convert to use the standard helper Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c index dacea5e040003..84c2963d4069a 100644 --- a/fs/bcachefs/data_update.c +++ b/fs/bcachefs/data_update.c @@ -296,15 +296,7 @@ out: 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,