aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/inode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 38cda78de5e4..6ba80b902877 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1882,8 +1882,11 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent)
1882 trans = btrfs_join_transaction_nolock(root); 1882 trans = btrfs_join_transaction_nolock(root);
1883 else 1883 else
1884 trans = btrfs_join_transaction(root); 1884 trans = btrfs_join_transaction(root);
1885 if (IS_ERR(trans)) 1885 if (IS_ERR(trans)) {
1886 return PTR_ERR(trans); 1886 ret = PTR_ERR(trans);
1887 trans = NULL;
1888 goto out;
1889 }
1887 trans->block_rsv = &root->fs_info->delalloc_block_rsv; 1890 trans->block_rsv = &root->fs_info->delalloc_block_rsv;
1888 ret = btrfs_update_inode_fallback(trans, root, inode); 1891 ret = btrfs_update_inode_fallback(trans, root, inode);
1889 if (ret) /* -ENOMEM or corruption */ 1892 if (ret) /* -ENOMEM or corruption */