From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Danilov Subject: Re: Implementing writepage Date: Mon, 27 Oct 2003 11:43:29 +0300 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <16284.55985.863779.2130@laputa.namesys.com> References: <20031025092152.D638B6D5B@blood.actrix.co.nz> <1067098698.3266.19.camel@lapdancer.baythorne.internal> <16284.55463.520076.541516@laputa.namesys.com> <1067243966.15551.256.camel@hades.cambridge.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: manningc2@actrix.gen.nz, linux-fsdevel@vger.kernel.org Return-path: Received: from thebsh.namesys.com ([212.16.7.65]:33979 "HELO thebsh.namesys.com") by vger.kernel.org with SMTP id S261342AbTJ0Inb (ORCPT ); Mon, 27 Oct 2003 03:43:31 -0500 To: David Woodhouse In-Reply-To: <1067243966.15551.256.camel@hades.cambridge.redhat.com> List-Id: linux-fsdevel.vger.kernel.org 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.