Re: Implementing writepage

Nikita Danilov
2003-10-27T08:43:31Z

David Woodhouse writes:
> On Mon, 2003-10-27 at 11:34 +0300, Nikita Danilov wrote:
> > 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.
>
> How do you get dirty but still file-backed pages if you don't get them
> by shared writable mmap?

By write(2)? May be I am missing something in this discussion, though.

>
> --
> dwmw2
>

Nikita.