From: Jonathan Brandmeyer Date: Thu, 12 Mar 2020 23:01:06 +0000 (+1300) Subject: rtems-yaffs: Checkpoint the filesystem at unmount time X-Git-Url: https://yaffs.net/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=8921e0e0ebe4265c5549a790e166c54a826ad512 rtems-yaffs: Checkpoint the filesystem at unmount time 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 --- diff --git a/rtems/rtems_yaffs.c b/rtems/rtems_yaffs.c index 6e018aa..8ee0b89 100644 --- a/rtems/rtems_yaffs.c +++ b/rtems/rtems_yaffs.c @@ -641,6 +641,7 @@ static void ryfs_fsunmount(rtems_filesystem_mount_table_entry_t *mt_entry) ylock(dev); yaffs_flush_whole_cache(dev, 1); + yaffs_checkpoint_save(dev); yaffs_deinitialise(dev); yunlock(dev); rtems_yaffs_os_unmount(dev);