Adding a checkpoint greatly reduces the amount of time required to mount
the filesystem on the next boot. After a clean unmount, remount time
is only a second or few. After an unclean reboot, remount time requires
a scan of the filesystem, which can take a few minutes.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
ylock(dev);
yaffs_flush_whole_cache(dev, 1);
ylock(dev);
yaffs_flush_whole_cache(dev, 1);
+ yaffs_checkpoint_save(dev);
yaffs_deinitialise(dev);
yunlock(dev);
rtems_yaffs_os_unmount(dev);
yaffs_deinitialise(dev);
yunlock(dev);
rtems_yaffs_os_unmount(dev);