Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1300990ybv; Thu, 13 Feb 2020 20:21:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzWhFx6uye3ITQ5KsA2vVLcIuArh4Is/G16/OBq9/Q/3EUO9bxSIK3KEeOVh8dqHPWUsTwr X-Received: by 2002:a9d:7357:: with SMTP id l23mr730213otk.10.1581654117603; Thu, 13 Feb 2020 20:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581654117; cv=none; d=google.com; s=arc-20160816; b=sex0nrg+kOV8NkdUITEnBdxnPsHScLhql1KPejRUmX0Uu5MDq3ambYSMuAV/3wcGYo MU7aUWUA5reX/WO4njyW6+rUCIimWYZYeFTLQ0RiKYBCa8jG9FGWggRzezobiCbXExIX O+vwH+Dl89LvpP2UfPFSmY750KUBAoxakuwpIGEyqONwzueToWJSGCuezBPbz9KPJAz8 WhBB3LYQ5k2j17MSGxPf2baJhVNE3jcMRKX/wJp1oJ6U0zGkJNK8/+Hs4emlbFQln8xa 8nO+kAgAW7/SJ3CnQiwqVNzENKkYczItNA66PJ6uuBVyvG9+zEuxQJJCDomujUnatHam nXCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pJ62j82nIU2Zy2GDXfwdfrwos2PK4U7hpjBMCZD+BHU=; b=bqF4eqJ27ONtmJWBK9UeV/P24M+51pIMdNB59mF/9KDhuAJsAL3LDDu8teyR8yCSrr l4ZSlCBioS0kJiqvxp1fhIr+OkDqYszuR6ZoHZpv/VFpYPUBRxxCAI76dDpopdkF6GVa 05o3sJTO+B457vchzU/2Xw6NFsgPuIXstJX1khvNHcXvhwi+6kH+3gVtnqmRocVgn9nZ ZFNVQ/HxrLd6pYxh7n2AUS16U0g2092z8kdNogWAN5e2O6IZ7iMqQDw1ZShAcipgLeJv jxnv1iKCzjxc0wTq2lsBoOr30DWu1+VSDTdp79TkF7h/schOvwmDC1SsgbQf8KoL0ef6 FKRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ek5FlmUJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w142si2000745oia.132.2020.02.13.20.21.44; Thu, 13 Feb 2020 20:21:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ek5FlmUJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728555AbgBNEVi (ORCPT + 99 others); Thu, 13 Feb 2020 23:21:38 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:39632 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728195AbgBNEVi (ORCPT ); Thu, 13 Feb 2020 23:21:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pJ62j82nIU2Zy2GDXfwdfrwos2PK4U7hpjBMCZD+BHU=; b=ek5FlmUJYVH7TpMGN0UDhdbdlP ZpmOzXocMxVA9d+jNFuPudLwDNy8swGrQKmqAV1aNIqgz+vUnuTGmNlYmgpVvtLBxVCCQf/xRgUQe aYNfvPrXmq2c9txws9vk9GMvkDWjdJajzfqJTNG4wpo2D6zNpxIMcEYsw/Uzmu6+fgNlhK+Z6xcqv U2oZdCKEAQQi7TpP6smp3l+MpsP/IBWp0Zr5Q7SQ0ag+jo6r6bu7CUU385j6YfQ+3UbG2m+R8CiIP hMY9ekNVlTY1SfacIa6TX8hjMg1KzbNePDpc9q0x1IrQoqCtQgquJiQia27l1b496aVFYOc5RO091 699nobpA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j2STx-0008Ig-7x; Fri, 14 Feb 2020 04:21:37 +0000 Date: Thu, 13 Feb 2020 20:21:37 -0800 From: Matthew Wilcox To: John Hubbard 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 v5 01/13] mm: Fix the return type of __do_page_cache_readahead Message-ID: <20200214042137.GX7778@bombadil.infradead.org> References: <20200211010348.6872-1-willy@infradead.org> <20200211010348.6872-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 13, 2020 at 07:19:53PM -0800, John Hubbard wrote: > On 2/10/20 5:03 PM, Matthew Wilcox wrote: > > @@ -161,7 +161,7 @@ unsigned int __do_page_cache_readahead(struct address_space *mapping, > > unsigned long end_index; /* The last page we want to read */ > > LIST_HEAD(page_pool); > > int page_idx; > > > What about page_idx, too? It should also have the same data type as nr_pages, as long as > we're trying to be consistent on this point. > > Just want to ensure we're ready to handle those 2^33+ page readaheads... :) Nah, this is just a type used internally to the function. Getting the API right for the callers is the important part.