Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 31 Dec 2001 07:50:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 31 Dec 2001 07:50:46 -0500 Received: from garrincha.netbank.com.br ([200.203.199.88]:61710 "HELO netbank.com.br") by vger.kernel.org with SMTP id ; Mon, 31 Dec 2001 07:50:36 -0500 Date: Mon, 31 Dec 2001 10:50:15 -0200 (BRST) From: Rik van Riel X-X-Sender: To: Dave Jones Cc: Linux Kernel , Manfred Spraul Subject: Re: [patch] Prefetching file_read_actor() In-Reply-To: <20011231033220.A1686@suse.de> Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Dec 2001, Dave Jones wrote: > diff -urN --exclude-from=/home/davej/.exclude linux-2.5.2-pre5/mm/filemap.c linux-2.5/mm/filemap.c > --- linux-2.5.2-pre5/mm/filemap.c Sun Dec 16 23:21:24 2001 > +++ linux-2.5/mm/filemap.c Mon Dec 31 03:22:51 2001 > @@ -1570,6 +1570,15 @@ > size = count; > > kaddr = kmap(page); > + > + if (size > 128) { > + int i; > + for(i=0; i + prefetch (kaddr+offset); > + prefetch (kaddr+offset+(L1_CACHE_BYTES*2)); Neat piece of deep magic, please document it ;) Rik -- Shortwave goes a long way: irc.starchat.net #swl http://www.surriel.com/ http://distro.conectiva.com/ - 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/