Btrfs: small naming cleanup in join_transaction()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 19 Jun 2012 10:30:11 +0000 (13:30 +0300)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 19:41:39 +0000 (15:41 -0400)
"root->fs_info" and "fs_info" are the same, but "fs_info" is prefered
because it is shorter and that's what is used in the rest of the
function.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
fs/btrfs/transaction.c

index 8c35847..cb2dfe2 100644 (file)
@@ -100,8 +100,8 @@ loop:
                kmem_cache_free(btrfs_transaction_cachep, cur_trans);
                cur_trans = fs_info->running_transaction;
                goto loop;
-       } else if (root->fs_info->fs_state & BTRFS_SUPER_FLAG_ERROR) {
-               spin_unlock(&root->fs_info->trans_lock);
+       } else if (fs_info->fs_state & BTRFS_SUPER_FLAG_ERROR) {
+               spin_unlock(&fs_info->trans_lock);
                kmem_cache_free(btrfs_transaction_cachep, cur_trans);
                return -EROFS;
        }