diff options
author | relan <relan@users.noreply.github.com> | 2015-11-07 11:06:34 +0300 |
---|---|---|
committer | relan <relan@users.noreply.github.com> | 2015-11-07 11:24:05 +0300 |
commit | 01be539e4d2855dca34e1734501115e880eb905e (patch) | |
tree | 3d40bce86616e8083e91d2e688b23433d7f8024e /fuse | |
parent | 77a236ce4cd8ba5493e3dd0350e8a1ef54df6dae (diff) | |
download | android_external_exfat-01be539e4d2855dca34e1734501115e880eb905e.tar.gz android_external_exfat-01be539e4d2855dca34e1734501115e880eb905e.tar.bz2 android_external_exfat-01be539e4d2855dca34e1734501115e880eb905e.zip |
Move nodes flush from exfat_flush() into a separate function.
Make exfat_flush() execution time more predictable.
Diffstat (limited to 'fuse')
-rw-r--r-- | fuse/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fuse/main.c b/fuse/main.c index 030362e..aad082b 100644 --- a/fuse/main.c +++ b/fuse/main.c @@ -206,6 +206,9 @@ static int fuse_exfat_fsync(const char* path, int datasync, int rc; exfat_debug("[%s] %s", __func__, path); + rc = exfat_flush_nodes(&ef); + if (rc != 0) + return rc; rc = exfat_flush(&ef); if (rc != 0) return rc; |