Commit 210b907a authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Jiri Kosina
Browse files

btrfs: remove unnecessary cur_trans set before goto loop in join_transaction

In the big loop, cur_trans will be set fs_info->running_transaction
before it's used. And after kmem_cache_free it and goto loop, it will
be setup again. No need to setup it immediately after freed.
Signed-off-by: default avatarWang Sheng-Hui <>
Signed-off-by: default avatarJiri Kosina <>
parent c46d5c04
......@@ -111,7 +111,6 @@ loop:
* to redo the trans_no_join checks above
kmem_cache_free(btrfs_transaction_cachep, cur_trans);
cur_trans = fs_info->running_transaction;
goto loop;
} else if (fs_info->fs_state & BTRFS_SUPER_FLAG_ERROR) {
Supports Markdown
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