summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 21:43:14 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 23:06:31 +1100
commit31bf3f7f7ccaa8025a9db8c5a3ac9adc131faca9 (patch)
tree83ce9d3872d57c07907d87b7e0040a3341ff7985
parentba8eeee29b8039d8f7d9eee5362117c2235296f0 (diff)
downloadffs-31bf3f7f7ccaa8025a9db8c5a3ac9adc131faca9.zip
ffs-31bf3f7f7ccaa8025a9db8c5a3ac9adc131faca9.tar.gz
Don't use fsync(): it's not needed
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--ffs/src/libffs.c12
1 files changed, 0 insertions, 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;
}
OpenPOWER on IntegriCloud