From 8921e0e0ebe4265c5549a790e166c54a826ad512 Mon Sep 17 00:00:00 2001 From: Jonathan Brandmeyer Date: Fri, 13 Mar 2020 12:01:06 +1300 Subject: [PATCH] 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 --- rtems/rtems_yaffs.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2