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: Wang Sheng-Hui <shhuiw@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
c46d5c04f3
commit
210b907acf
1 changed files with 0 additions and 1 deletions
|
@ -111,7 +111,6 @@ loop:
|
||||||
* to redo the trans_no_join checks above
|
* to redo the trans_no_join checks above
|
||||||
*/
|
*/
|
||||||
kmem_cache_free(btrfs_transaction_cachep, cur_trans);
|
kmem_cache_free(btrfs_transaction_cachep, cur_trans);
|
||||||
cur_trans = fs_info->running_transaction;
|
|
||||||
goto loop;
|
goto loop;
|
||||||
} else if (fs_info->fs_state & BTRFS_SUPER_FLAG_ERROR) {
|
} else if (fs_info->fs_state & BTRFS_SUPER_FLAG_ERROR) {
|
||||||
spin_unlock(&fs_info->trans_lock);
|
spin_unlock(&fs_info->trans_lock);
|
||||||
|
|
Loading…
Add table
Reference in a new issue