From f20c481b11b6dc1d1f13027f6b13be0e42ce08ad Mon Sep 17 00:00:00 2001
From: Richard Nyberg <rnyberg@murmeldjur.se>
Date: Sun, 15 Oct 2006 09:27:21 +0000
Subject: [PATCH] There's no need to fsync here, so remove the call. This
 should improve write performance.

---
 misc/stream.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/misc/stream.c b/misc/stream.c
index 32a2512..4c51d96 100644
--- a/misc/stream.c
+++ b/misc/stream.c
@@ -146,11 +146,6 @@ bts_put(struct bt_stream *bts, off_t off, const uint8_t *buf, size_t len)
         bts->f_off += didwrite;
         bts->t_off += didwrite;
         if (bts->f_off == bts->files[bts->index].length) {
-            if (fsync(bts->fd) == -1) {
-                int err = errno;
-                close(bts->fd);
-                return err;
-            }
             if (close(bts->fd) == -1)
                 return errno;
             bts->fd = -1;