aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 941b28e78931..ca599654ce19 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -3200,7 +3200,8 @@ alloc:
3200 3200
3201 /* commit the current transaction and try again */ 3201 /* commit the current transaction and try again */
3202commit_trans: 3202commit_trans:
3203 if (!committed && !root->fs_info->open_ioctl_trans) { 3203 if (!committed &&
3204 !atomic_read(&root->fs_info->open_ioctl_trans)) {
3204 committed = 1; 3205 committed = 1;
3205 trans = btrfs_join_transaction(root); 3206 trans = btrfs_join_transaction(root);
3206 if (IS_ERR(trans)) 3207 if (IS_ERR(trans))