From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Sep 2001 02:34:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Sep 2001 02:34:34 -0400 Received: from [195.223.140.107] ([195.223.140.107]:6654 "EHLO athlon.random") by vger.kernel.org with ESMTP id ; Thu, 20 Sep 2001 02:34:21 -0400 Date: Thu, 20 Sep 2001 08:34:38 +0200 From: Andrea Arcangeli To: Linus Torvalds Cc: Hugh Dickins , Marcelo Tosatti , linux-kernel@vger.kernel.org Subject: Re: pre12 VM doubts and patch Message-ID: <20010920083438.A1629@athlon.random> In-Reply-To: <20010920080837.A719@athlon.random> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from torvalds@transmeta.com on Wed, Sep 19, 2001 at 11:15:47PM -0700 X-GnuPG-Key-URL: http://e-mind.com/~andrea/aa.gnupg.asc X-PGP-Key-URL: http://e-mind.com/~andrea/aa.asc Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 19, 2001 at 11:15:47PM -0700, Linus Torvalds wrote: > and do early COW (which the write-access kind of means). my new patch does the early COW. > However, your patch isn't right for another reason: if we do delete it > from the swap cache, we'd better mark it dirty so that it gets > re-allocated a swap entry if it later on needs it. > > That's why the old code went to such extremes: it marked it dirty and > writable if it was a write access (and exclusive), and it marked it _just_ > dirty and removed it from the swap cache if it went over the swap limit. agreed. Andrea