Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <shhuiw@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c46d5c04
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -111,7 +111,6 @@ static noinline int join_transaction(struct btrfs_root *root, int type)
		 * 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) {
		spin_unlock(&fs_info->trans_lock);