diff options
Diffstat (limited to 'src/el-file.c')
-rw-r--r-- | src/el-file.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/el-file.c b/src/el-file.c index dd98392..34d2cbc 100644 --- a/src/el-file.c +++ b/src/el-file.c @@ -554,6 +554,16 @@ int el_file_flush VALID(EBADF, el->fcurrent_log); VALID(EBADF, el->fcurrent_log[0] != '\0'); + if (el->fwritten_after_sync == 0) + { + /* if now writes have been performed between consecutive + * flush, then don't flush - since there is nothing to + * flush anyway + */ + + return 0; + } + /* first flush data from stdio library buffers into kernel */ |