Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5475454ybv; Mon, 17 Feb 2020 21:14:53 -0800 (PST) X-Google-Smtp-Source: APXvYqww5YKgx8NOuYZOOLvGXVXYlVNiZefHJ++r7xe9Tf9DHLoFuM+AODlVDLHcL3SgaXyROdqS X-Received: by 2002:aca:ed94:: with SMTP id l142mr222072oih.58.1582002893159; Mon, 17 Feb 2020 21:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582002893; cv=none; d=google.com; s=arc-20160816; b=o8exS/4pylCnrA4TcSmOnHPTJhHws3m4dycM6pF/qL3PoUAXBrYAToEeUOnsF2M6ek 3Fd9N59Skxfn64/BvHrORhck6YNJX15tuNKek3Adr3zu4Rxhx1f0uRt0z/eWEPdubQuu rf7LMbHE3z2de4BcmD9O28jKavnjmppJaKp5mgSB3k+dyYbGVAzrdNSZDCWafUibfofQ 6sd7j42B9vndvSLNGnckquso9Nwuroy0MFxJdW0HCeotSDnDRvvUQ/45f1q+lVzhbWup b0LS2J0HP02bYTiPaIkT7UqLFrrW40O5kNuYaTuMsMvfuotvypfjxd18zBwq7I8gkr2X 3VnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wd6tXqbhD6YZJSLO9DO3DDuUHBkKR4rLyOaOatubPLY=; b=WvDqHnMdKmsWuCR464i7D5KyjIdIgM9nvuvdLRKqZgmLHtomi6ft9tkBxN70WqavbF UwSVdZQfv7ejB28bbPu0Ortg/tI917+QIR7bdTv+aqLBGfeLG31ajpxoGdpy5vLWDeI1 NBEdCqgflEjHRX+C/q+CFQms43zNNSp26Xl3mWPqpObEeOAZFVqlRu0qZMDGjS0idKjx LjjbZJRUeyC1GkKPUafYXbE9MHcuMAKR2OxHfM0KCXxfLyhxkGbfy/kXGd1mk1Mhg628 cCNfgb47/NPFkg0xoyF2G6eUZGWPuAsdyTZvvdwWqEXDeatGz6GTG2SnrYfezaGAuOZs aOmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si7400763ois.221.2020.02.17.21.14.41; Mon, 17 Feb 2020 21:14:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725939AbgBRFOj (ORCPT + 99 others); Tue, 18 Feb 2020 00:14:39 -0500 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:59275 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbgBRFOi (ORCPT ); Tue, 18 Feb 2020 00:14:38 -0500 Received: from dread.disaster.area (pa49-179-138-28.pa.nsw.optusnet.com.au [49.179.138.28]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id C708D3A1BE6; Tue, 18 Feb 2020 16:14:35 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1j3vDP-0005sZ-7K; Tue, 18 Feb 2020 16:14:35 +1100 Date: Tue, 18 Feb 2020 16:14:35 +1100 From: Dave Chinner To: Matthew Wilcox Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, ocfs2-devel@oss.oracle.com, linux-xfs@vger.kernel.org Subject: Re: [PATCH v6 05/19] mm: Remove 'page_offset' from readahead loop Message-ID: <20200218051435.GK10776@dread.disaster.area> References: <20200217184613.19668-1-willy@infradead.org> <20200217184613.19668-8-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200217184613.19668-8-willy@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=LYdCFQXi c=1 sm=1 tr=0 a=zAxSp4fFY/GQY8/esVNjqw==:117 a=zAxSp4fFY/GQY8/esVNjqw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=l697ptgUJYAA:10 a=JfrnYn6hAAAA:8 a=7-415B0cAAAA:8 a=JuDxSlhT3OO6blO4plAA:9 a=CjuIK1q_8ugA:10 a=1CNFftbPRP8L7MoqJWF3:22 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Feb 17, 2020 at 10:45:48AM -0800, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > Eliminate the page_offset variable which was confusing with the > 'offset' parameter and record the start of each consecutive run of > pages in the readahead_control. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > mm/readahead.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) Looks ok, but having the readahead dispatch out of line from the case that triggers it makes it hard to follow. Cheers, Dave. -- Dave Chinner david@fromorbit.com