Author: Charles Manning Date: To: yaffs Subject: Re: [Yaffs] regarding yaffs_write_end and yaffs_writepage
On Monday 04 July 2011 16:43:45 Joshi wrote: > Hello all,
>
>
>
> Does YAFFS support write-back? Presence of yaffs_writepage in address space
> operation structure gives me the impression that it does.
>
> However, looks like yaffs_write_end writes the page(in which user data was
> copied after the invocation of yaffs_write_begin) to device.
>
> Moreover, I don’t get to see the yaffs_writepage getting called after
> writing to a file.
>
> Am I correct in concluding that, since yaffs_write_end does write to the
> nand(instead of marking the page dirty for write-back), yaffs_writepage
> does not get called.
IIRC, writepage is used for writing back memory mapped files.
Try doing some memory mapped writes and see if that uses the writepage path.