From: David Woodhouse Subject: Re: writethrough of mmapped pages Date: Sat, 31 Jan 2004 10:21:56 +0000 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1075544515.2282.53.camel@imladris.demon.co.uk> References: <1075505404.2322.9.camel@stevef95.austin.ibm.com> <20040130160218.5b485e44.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Steve French , linux-fsdevel@vger.kernel.org Return-path: Received: from imladris.demon.co.uk ([193.237.130.41]:48776 "EHLO baythorne.infradead.org") by vger.kernel.org with ESMTP id S264329AbUAaKWu (ORCPT ); Sat, 31 Jan 2004 05:22:50 -0500 To: Andrew Morton In-Reply-To: <20040130160218.5b485e44.akpm@osdl.org> List-Id: linux-fsdevel.vger.kernel.org On Fri, 2004-01-30 at 16:02 -0800, Andrew Morton wrote: > You mean that you want the filesytem to know whenever an application > attempts to modify a mmapped page? After the modification, rather than > before? > > Not sure how to do that - even if you modify the MM to take a trap on every > write the page still hasn't been modified on entry to the fault handler. If I'm ever going to implement shared writable mmap in JFFS2 I'm going to need part of this actually -- a hook in do_wp_page() so I can preallocate data structures, and make appropriate reservations on the medium to make sure we can always satisfy the writepage() without having to garbage collect or allocate memory. Knowing about it before the modification is fine for me though. -- dwmw2