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 /libexfat/mount.c | |
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 'libexfat/mount.c')
-rw-r--r-- | libexfat/mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexfat/mount.c b/libexfat/mount.c index f1fb01a..0d6ce9e 100644 --- a/libexfat/mount.c +++ b/libexfat/mount.c @@ -359,7 +359,8 @@ static void finalize_super_block(struct exfat* ef) void exfat_unmount(struct exfat* ef) { - exfat_flush(ef); /* ignore return code */ + exfat_flush_nodes(ef); /* ignore return code */ + exfat_flush(ef); /* ignore return code */ exfat_put_node(ef, ef->root); exfat_reset_cache(ef); free(ef->root); |