diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-26 17:12:05 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:54 -0400 |
commit | 039c45feef4f9a46aa0ee0b5ecfafdfd4c0dde76 (patch) | |
tree | c1f2543f7ebf8c6b4d832d54a97c7fb455220d61 /fs/bcachefs/data_update.c | |
parent | e07cb97460b9dd057c510e6d2294a29e72e60797 (diff) | |
download | linux-039c45feef4f9a46aa0ee0b5ecfafdfd4c0dde76.tar.gz linux-039c45feef4f9a46aa0ee0b5ecfafdfd4c0dde76.tar.bz2 linux-039c45feef4f9a46aa0ee0b5ecfafdfd4c0dde76.zip |
bcachefs: bch2_data_update_index_update() -> bch2_trans_run()
Convert to use the standard helper
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/data_update.c')
-rw-r--r-- | fs/bcachefs/data_update.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c index dacea5e04000..84c2963d4069 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, |