From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaya Potter Subject: Re: which dentry a page belongs to Date: Fri, 23 Apr 2004 14:05:40 -0400 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1082743539.1943.84.camel@zaphod> References: <1082732223.1943.11.camel@zaphod> <20040423151458.GC6300@mail.shareable.org> <1082734938.1943.26.camel@zaphod> <20040423173738.A3812@infradead.org> <1082739174.1943.49.camel@zaphod> <20040423180130.A4255@infradead.org> <1082740707.1943.61.camel@zaphod> <20040423173719.GB7335@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org Return-path: Received: from opus.cs.columbia.edu ([128.59.20.100]:52897 "EHLO opus.cs.columbia.edu") by vger.kernel.org with ESMTP id S264898AbUDWSFq (ORCPT ); Fri, 23 Apr 2004 14:05:46 -0400 To: Jamie Lokier In-Reply-To: <20040423173719.GB7335@mail.shareable.org> List-Id: linux-fsdevel.vger.kernel.org On Fri, 2004-04-23 at 18:37 +0100, Jamie Lokier wrote: > You should be using the ->mmap operations of file_operations instead, > and do your versioning operation at the time a writable shared mapping > is created. (The kernel does not provide a way to track when pages > are actually modified through a specific mapping). You can look in > generic_file_mmap() to see the condition which tests for a writable > shared mapping. Test that, do the versioning operation, and then call > generic_file_mmap from your own mmap function to finish the job. right, I know i can do that (or on lookup(), or on open() ) but that basically limits me to a open/close transaction for versioning. Can't ioctl the fs, and cause all future writes to be in a new version. shaya