Btrfs: kill trans_mutex
[linux-2.6-block.git] / fs / btrfs / extent-tree.c
index 941b28e78931d374237da7f999aa73a81fdb3c02..ca599654ce19719c1131f875d9b7819e6f5736af 100644 (file)
@@ -3200,7 +3200,8 @@ alloc:
 
                /* commit the current transaction and try again */
 commit_trans:
-               if (!committed && !root->fs_info->open_ioctl_trans) {
+               if (!committed &&
+                   !atomic_read(&root->fs_info->open_ioctl_trans)) {
                        committed = 1;
                        trans = btrfs_join_transaction(root);
                        if (IS_ERR(trans))