Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751795AbaBNApY (ORCPT ); Thu, 13 Feb 2014 19:45:24 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37907 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751218AbaBNApX (ORCPT ); Thu, 13 Feb 2014 19:45:23 -0500 Date: Thu, 13 Feb 2014 16:45:21 -0800 From: Andrew Morton To: Linus Torvalds Cc: Nishanth Aravamudan , David Rientjes , Raghavendra K T , Fengguang Wu , David Cohen , Al Viro , Damien Ramonda , Jan Kara , linux-mm , Linux Kernel Mailing List Subject: Re: [RFC PATCH V5] mm readahead: Fix readahead fail for no local memory and limit readahead pages Message-Id: <20140213164521.c656b6022287f387dddd5a2f@linux-foundation.org> In-Reply-To: References: <52F4B8A4.70405@linux.vnet.ibm.com> <52F88C16.70204@linux.vnet.ibm.com> <52F8C556.6090006@linux.vnet.ibm.com> <52FC6F2A.30905@linux.vnet.ibm.com> <52FC98A6.1000701@linux.vnet.ibm.com> <20140214001438.GB1651@linux.vnet.ibm.com> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Feb 2014 16:37:53 -0800 Linus Torvalds wrote: > unsigned long max_sane_readahead(unsigned long nr) > { > return min(nr, 128); > } I bet nobody will notice. It should be 128*4096/PAGE_CACHE_SIZE so that variations in PAGE_SIZE don't affect readahead behaviour. -- 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/