501-yaffs-add-missing-flush-arguments.patch 986 B

1234567891011121314151617181920212223242526272829303132333435363738
  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
  4. yaffs_gross_lock(dev);
  5. - yaffs_flush_file(obj, 1, 0);
  6. + yaffs_flush_file(obj, 1, 0, 1);
  7. yaffs_gross_unlock(dev);
  8. @@ -768,7 +768,7 @@ static int yaffs_sync_object(struct file
  9. yaffs_trace(YAFFS_TRACE_OS | YAFFS_TRACE_SYNC,
  10. "yaffs_sync_object");
  11. yaffs_gross_lock(dev);
  12. - yaffs_flush_file(obj, 1, datasync);
  13. + yaffs_flush_file(obj, 1, datasync, 1);
  14. yaffs_gross_unlock(dev);
  15. return 0;
  16. }
  17. @@ -2187,7 +2187,7 @@ static void yaffs_flush_inodes(struct su
  18. yaffs_trace(YAFFS_TRACE_OS,
  19. "flushing obj %d",
  20. obj->obj_id);
  21. - yaffs_flush_file(obj, 1, 0);
  22. + yaffs_flush_file(obj, 1, 0, 1);
  23. }
  24. }
  25. }
  26. @@ -2200,7 +2200,7 @@ static void yaffs_flush_super(struct sup
  27. yaffs_flush_inodes(sb);
  28. yaffs_update_dirty_dirs(dev);
  29. - yaffs_flush_whole_cache(dev);
  30. + yaffs_flush_whole_cache(dev, 1);
  31. if (do_checkpoint)
  32. yaffs_checkpoint_save(dev);
  33. }