1 --- a/fs/yaffs2/yaffs_vfs.c
2 +++ b/fs/yaffs2/yaffs_vfs.c
3 @@ -738,7 +738,7 @@ static int yaffs_file_flush(struct file
7 - yaffs_flush_file(obj, 1, 0);
8 + yaffs_flush_file(obj, 1, 0, 1);
10 yaffs_gross_unlock(dev);
12 @@ -768,7 +768,7 @@ static int yaffs_sync_object(struct file
13 yaffs_trace(YAFFS_TRACE_OS | YAFFS_TRACE_SYNC,
15 yaffs_gross_lock(dev);
16 - yaffs_flush_file(obj, 1, datasync);
17 + yaffs_flush_file(obj, 1, datasync, 1);
18 yaffs_gross_unlock(dev);
21 @@ -2187,7 +2187,7 @@ static void yaffs_flush_inodes(struct su
22 yaffs_trace(YAFFS_TRACE_OS,
25 - yaffs_flush_file(obj, 1, 0);
26 + yaffs_flush_file(obj, 1, 0, 1);
30 @@ -2200,7 +2200,7 @@ static void yaffs_flush_super(struct sup
32 yaffs_flush_inodes(sb);
33 yaffs_update_dirty_dirs(dev);
34 - yaffs_flush_whole_cache(dev);
35 + yaffs_flush_whole_cache(dev, 1);
37 yaffs_checkpoint_save(dev);