From: Wang Sheng-Hui Date: Mon, 24 Sep 2012 00:47:23 +0000 (+0800) Subject: btrfs: remove unnecessary cur_trans set before goto loop in join_transaction X-Git-Tag: v3.9-rc1~113^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=210b907acfb414650dcdae9b470eb2fccac7996b;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Jiri Kosina --- diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 04bbfb1052ebf..68704e74f0d38 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -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) { spin_unlock(&fs_info->trans_lock);