From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Danilov Subject: Re: Implementing writepage Date: Mon, 27 Oct 2003 11:34:47 +0300 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <16284.55463.520076.541516@laputa.namesys.com> References: <20031025092152.D638B6D5B@blood.actrix.co.nz> <1067098698.3266.19.camel@lapdancer.baythorne.internal> 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]:25787 "HELO thebsh.namesys.com") by vger.kernel.org with SMTP id S261380AbTJ0Iey (ORCPT ); Mon, 27 Oct 2003 03:34:54 -0500 To: David Woodhouse In-Reply-To: <1067098698.3266.19.camel@lapdancer.baythorne.internal> List-Id: linux-fsdevel.vger.kernel.org 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.