Re: Implementing writepage

David Woodhouse
2003-10-27T08:39:30Z

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?

--
dwmw2