Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754862AbZCZDAM (ORCPT ); Wed, 25 Mar 2009 23:00:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751135AbZCZC75 (ORCPT ); Wed, 25 Mar 2009 22:59:57 -0400 Received: from THUNK.ORG ([69.25.196.29]:40308 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822AbZCZC74 (ORCPT ); Wed, 25 Mar 2009 22:59:56 -0400 Date: Wed, 25 Mar 2009 22:59:09 -0400 From: Theodore Tso To: Linus Torvalds Cc: Jan Kara , Andrew Morton , Ingo Molnar , Alan Cox , Arjan van de Ven , Peter Zijlstra , Nick Piggin , Jens Axboe , David Rees , Jesper Krogh , Linux Kernel Mailing List Subject: Re: Linux 2.6.29 Message-ID: <20090326025909.GT32307@mit.edu> Mail-Followup-To: Theodore Tso , Linus Torvalds , Jan Kara , Andrew Morton , Ingo Molnar , Alan Cox , Arjan van de Ven , Peter Zijlstra , Nick Piggin , Jens Axboe , David Rees , Jesper Krogh , Linux Kernel Mailing List References: <20090325123744.GK23439@duck.suse.cz> <20090325150041.GM32307@mit.edu> <20090325185824.GO32307@mit.edu> <20090325215137.GQ32307@mit.edu> <20090326002253.GC11024@duck.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@mit.edu X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 22 On Wed, Mar 25, 2009 at 06:34:32PM -0700, Linus Torvalds wrote: > > Of course, the approach of just checking whether the buffer heads already > exists and are mapped (before bothering with anything else) probably works > fine in practice. In most loads, pages will have been dirtied by regular > "write()" system calls, and then we will have the buffers pre-allocated > regardless. > Yeah, I agree; solving the problem in the case of files being dirtied via write() is going to solve a much percentage of the cases compared to those cases where the pages are dirtied via mmap()'ed pages. I thought we were doing this already, but clearly I should have looked at the code first. :-( - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/