Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1790250pxb; Sat, 14 Nov 2020 02:22:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw55mUtx3NolP5MFPHxK6t7ggve/zXUyoeGSV25JivGB94Mvw7qN+Fz2fE4h8B4cZ0SID9c X-Received: by 2002:a50:fd15:: with SMTP id i21mr6610729eds.127.1605349343037; Sat, 14 Nov 2020 02:22:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605349343; cv=none; d=google.com; s=arc-20160816; b=i+OpumiNYCpDC0M1vwJXU0A6wr2tEyQTi6saeNlkWwGKxyJ7AMx3/eTC7FE2p5ajpl EYjVXeag9XaJD2iPaJyG0NQdxtBsjmUjz13ynGW4btQK22iNsZAWR0JhPNKfzjyyIy4u EhoU7mI/ygKIksa4SN4kvv8ZS2AkKEMl015OAz74yriH1ODumk/e/qIeLCrrrIAE/Bz/ NOslKSQ3y5pS4hA8x2R/41ZQvWwn5mKxZCnaaFHjqgkQzFueO0eHCJq12TN52zYH9z1Z zjxdMk6jVAvVMs5fSa5odNf/tU/uAQ/I4Ao2d6msv854XKfCkP3q6Tk5FRv5PqyOmOnl XzbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=2VjsGbC4vqe+JJ9+HzwwgmmmvF6APBhBcJ/RDtPQzec=; b=Tx96mhK76kqyACoaXLol/KfASb9rRRPZp79coTURuxs64fA7Uoiw9VJP7No/KyELn2 PggW9kYmQwMU1uQKv1x4q8plQlzznC9Lj4ann/tK5UQ8kFyDA6drI7hv5EadqX0Lwgqv LzLmtXLmrmYwY8n+gqZDYXQxFqA6z5eSr37/V4/GlKm8SOSQ88gbFjS4SrHYI9YFKtL3 5z9cWA3uc9aKFK17w1QfD4pq+3OUpkuCSaUTEsykPlOSqxiBAY/pwjtbAOdlevsEVTrw b3cXpDWp+rFLkhNhrKalSXD30lOyjx5nPI3MIX923tjcLDIlHZ/Y/SzcpOTa4ZXHqTp/ zXNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nt19si7925983ejb.490.2020.11.14.02.21.53; Sat, 14 Nov 2020 02:22:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726578AbgKNKTL (ORCPT + 99 others); Sat, 14 Nov 2020 05:19:11 -0500 Received: from verein.lst.de ([213.95.11.211]:49995 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbgKNKTL (ORCPT ); Sat, 14 Nov 2020 05:19:11 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 4E4D167373; Sat, 14 Nov 2020 11:19:06 +0100 (CET) Date: Sat, 14 Nov 2020 11:19:05 +0100 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, hughd@google.com, hch@lst.de, hannes@cmpxchg.org, yang.shi@linux.alibaba.com, dchinner@redhat.com, linux-kernel@vger.kernel.org, Jan Kara , William Kucharski Subject: Re: [PATCH v4 11/16] mm: Add an 'end' parameter to pagevec_lookup_entries Message-ID: <20201114101905.GL19102@lst.de> References: <20201112212641.27837-1-willy@infradead.org> <20201112212641.27837-12-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112212641.27837-12-willy@infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 09:26:36PM +0000, Matthew Wilcox (Oracle) wrote: > Simplifies the callers and uses the existing functionality > in find_get_entries(). We can also drop the final argument of > truncate_exceptional_pvec_entries() and simplify the logic in that > function. I'd say the truncate_exceptional_pvec_entries simpliciation is a separate step and should normally be a separate patch. But otherwise this looks good: Reviewed-by: Christoph Hellwig