Btrfs: Update on disk i_size only after pending ordered extents are done
[linux-2.6-block.git] / fs / btrfs / file.c
index 20928639d173ca5b33e893302e6ba5d0b0aedbe4..3e4e5c227c0c33e72d93b0b9fdde24bb151870c7 100644 (file)
@@ -338,7 +338,7 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
                btrfs_update_inode(trans, root, inode);
        }
 failed:
-       err = btrfs_end_transaction(trans, root);
+       err = btrfs_end_transaction_throttle(trans, root);
 out_unlock:
        unlock_extent(io_tree, start_pos, end_of_last_block, GFP_NOFS);
        return err;