From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752191AbXCOW7t (ORCPT ); Thu, 15 Mar 2007 18:59:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753401AbXCOW7t (ORCPT ); Thu, 15 Mar 2007 18:59:49 -0400 Received: from mx1.suse.de ([195.135.220.2]:35481 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752191AbXCOW7r (ORCPT ); Thu, 15 Mar 2007 18:59:47 -0400 Date: Thu, 15 Mar 2007 23:59:29 +0100 From: Andrea Arcangeli To: Hugh Dickins Cc: Nick Piggin , Chuck Ebbert , Ashif Harji , Miquel van Smoorenburg , linux-mm@kvack.org, Jan Kara , linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH] mm/filemap.c: unconditionally call mark_page_accessed Message-ID: <20070315225928.GF6687@v2.random> References: <20070312143900.GB6016@wotan.suse.de> <20070312151355.GB23532@duck.suse.cz> <20070312173500.GF23532@duck.suse.cz> <20070313185554.GA5105@duck.suse.cz> <45F96CCB.4000709@redhat.com> <20070315162944.GI8321@wotan.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2007 at 05:44:01PM +0000, Hugh Dickins wrote: > who removed the !offset condition, he should be consulted on its > reintroduction. the !offset check looks a pretty broken heuristic indeed, it would break random I/O. The real fix is to add a ra.prev_offset along with ra.prev_page, and if who implements it wants to be stylish he can as well use a ra.last_contiguous_read structure that has a page and offset fields (and then of course remove ra.prev_page).