From 31bf3f7f7ccaa8025a9db8c5a3ac9adc131faca9 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 15 Dec 2015 21:43:14 +1100 Subject: Don't use fsync(): it's not needed Signed-off-by: Stewart Smith --- ffs/src/libffs.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ffs/src/libffs.c b/ffs/src/libffs.c index 83a7df0..7518651 100644 --- a/ffs/src/libffs.c +++ b/ffs/src/libffs.c @@ -637,14 +637,6 @@ static int ffs_flush(ffs_t * self) return -1; } - if (fileno(self->file) != -1) { - if (fsync(fileno(self->file)) < 0) { - ERRNO(errno); - return -1; - } - } - - self->dirty = false; return 0; @@ -763,10 +755,6 @@ int __ffs_fsync(ffs_t * self) return -1; } - if (fileno(self->file) != -1) - if (fsync(fileno(self->file)) < 0) - return -1; - return 0; } -- cgit v1.2.1