Re: Implementing writepage

Nikita Danilov
2003-10-27T08:34:54Z

David Woodhouse writes:
> On Sat, 2003-10-25 at 22:27 +0000, Charles Manning wrote:
> > I need to therefore implement writepage and have a few questions:
>
> No you don't. This is flash -- people don't really need shared writable
> mmap; if they think they do, they need educating not pandering to.

Note that ->writepage() is used not only by mmap() (actually, it is only
used by mmap() is file system doesn't provide its on
->writepages()). ->writepage() is used by VM to write pages in response
to the memory pressure (see mm/vmscan.c:shrink_list()). Every
well-behaving file system has to provide ->writepage() for this purpose.

>

[...]

>
> --
> dwmw2
>

Nikita.