aboutsummaryrefslogtreecommitdiffstats
path: root/libexfat/io.c
diff options
context:
space:
mode:
authorrelan <relan@users.noreply.github.com>2009-11-14 19:22:12 +0000
committerrelan <relan@users.noreply.github.com>2015-08-24 08:26:10 +0300
commit9de5a6944027795b80f827f1a1e0da25c39f970d (patch)
treec2caa8dd4309ba88da3886cc42cf044d03619435 /libexfat/io.c
parent4cde6f71d1e1ff693879cf86d3f4bed46db49995 (diff)
downloadandroid_external_exfat-9de5a6944027795b80f827f1a1e0da25c39f970d.tar.gz
android_external_exfat-9de5a6944027795b80f827f1a1e0da25c39f970d.tar.bz2
android_external_exfat-9de5a6944027795b80f827f1a1e0da25c39f970d.zip
Flush node on close instead of flushing on each node modification.
Diffstat (limited to 'libexfat/io.c')
-rw-r--r--libexfat/io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libexfat/io.c b/libexfat/io.c
index ed7a255..5584998 100644
--- a/libexfat/io.c
+++ b/libexfat/io.c
@@ -103,7 +103,6 @@ ssize_t exfat_write(struct exfat* ef, struct exfat_node* node,
cluster = exfat_next_cluster(ef, node, cluster);
}
/* FIXME update modification time */
- /* FIXME no need to flush immediately */
- exfat_flush_node(ef, node);
+ node->flags |= EXFAT_ATTRIB_DIRTY;
return size - remainder;
}