Implementing writepage

Charles Manning
2003-10-25T09:21:56Z

Hi

I'm the maintainer for YAFFS, the NAND-flash file system.

I've had readpage implemented for a long while to support read memory mapping
(eg to execute a program).

I've also had prepare_write and commit_write implemented for a while,
thinking this was sufficient to support write mmapping. Someone found that
this is not the case.

I need to therefore implement writepage and have a few questions:

1) Is there a generic writepage lurking somewhere that will use
prepare/commit_write instead?
2) What fiddling is required with kmap & page flags within writepage or is
this all handled by the caller?

Any help appreciated.

Thanx

-- Charles