diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2012-09-24 08:47:23 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-01-09 11:48:33 +0100 |
commit | 210b907acfb414650dcdae9b470eb2fccac7996b (patch) | |
tree | 3a3f76852a5ffff35e9030d171bc1181f5322fc0 /fs/btrfs/transaction.c | |
parent | c46d5c04f377bcaf955f38a45cbd752bcb68614d (diff) | |
download | blackbird-op-linux-210b907acfb414650dcdae9b470eb2fccac7996b.tar.gz blackbird-op-linux-210b907acfb414650dcdae9b470eb2fccac7996b.zip |
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>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 04bbfb1052eb..68704e74f0d3 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); |