diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-12-15 21:43:14 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-12-15 23:06:31 +1100 |
commit | 31bf3f7f7ccaa8025a9db8c5a3ac9adc131faca9 (patch) | |
tree | 83ce9d3872d57c07907d87b7e0040a3341ff7985 /ffs/src | |
parent | ba8eeee29b8039d8f7d9eee5362117c2235296f0 (diff) | |
download | ffs-31bf3f7f7ccaa8025a9db8c5a3ac9adc131faca9.tar.gz ffs-31bf3f7f7ccaa8025a9db8c5a3ac9adc131faca9.zip |
Don't use fsync(): it's not needed
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'ffs/src')
-rw-r--r-- | ffs/src/libffs.c | 12 |
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; } |