Re: [Yaffs] mount time variable

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Paolo Minazzi
Date:  
To: yaffs
Subject: Re: [Yaffs] mount time variable
file fs/yaffs2/yaffs_fs.c LINE=1621

I have commented "if (yaffs_auto_checkpoint >= 2)"., so sync is forced.
I don't understand how internal works, but this seems solves the problem.
If I write into yaffs, wait a little and I put-off voltage, the mount
is very fast at the next boot.

#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17))
static void yaffs_write_super(struct super_block *sb)
#else
static int yaffs_write_super(struct super_block *sb)
#endif
{

        // T(YAFFS_TRACE_OS, ("yaffs_write_super\n"));
        printk("yaffs_write_super\n");
        // COMMENTED BY PAOLO
        // if (yaffs_auto_checkpoint >= 2)
                yaffs_do_sync_fs(sb);
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18))
        return 0;
#endif
}


I don't know the drawback of this change.
Probably it is not good.

Thanks
Paolo