From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 2/9] readahead: snap readahead request to EOF Date: Wed, 30 Nov 2011 20:06:03 +0800 Message-ID: <20111130120603.GA19834@localhost> References: <20111129130900.628549879@intel.com> <20111129131456.145362960@intel.com> <20111129142958.GJ5635@quack.suse.cz> <20111130010604.GD11147@localhost> <20111130113719.GC4541@quack.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Andi Kleen , Linux Memory Management List , "linux-fsdevel@vger.kernel.org" , LKML To: Jan Kara Return-path: Received: from mga14.intel.com ([143.182.124.37]:30750 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752807Ab1K3MGI (ORCPT ); Wed, 30 Nov 2011 07:06:08 -0500 Content-Disposition: inline In-Reply-To: <20111130113719.GC4541@quack.suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: > > + /* snap to EOF */ > > + size += min(size, ra->ra_pages / 4); > I'd probably choose: > size += min(size / 2, ra->ra_pages / 4); > to increase current window only to 3/2 and not twice but I don't have a OK it looks good on large ra_pages. I'll use this form. > strong opinion. Otherwise I think the code is fine now so you can add: > Acked-by: Jan Kara Thanks! Fengguang