Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1791424pxb; Sat, 14 Nov 2020 02:25:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbL9SqZ6Wk51wRqsp5calP21f3hRepbxegesN0VRePze0dbGx1wea2jYREji+Ei9UuMMhL X-Received: by 2002:a17:906:e2da:: with SMTP id gr26mr1812907ejb.265.1605349552371; Sat, 14 Nov 2020 02:25:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605349552; cv=none; d=google.com; s=arc-20160816; b=TGlalGZp3zEVj3d7RIvEsbod4OhCGBAho7oZ2iZc8vvdBgmHlhdlbK7sjl+1qD8Kwk 2HcIgkvVodHighXvn4KzAAHKs/ptcnmKnFBLPAvTUgXbdiq3X6gppRAjfCN3VlzglEyn L169BJ8Alwh0LcPBfwiooNbtt4Aa4nhWFLC2KfifgVwVLDiw1tRK7mQQnkOSE0rkG7Uh /0CutKnmPQ9RncWk21vIolZzUMtt/hnTc/PGidJNYk85/t+KhewXOmwc5rNDFgsnRp5S 0JfWGTs9yOUyGtKGML6liLxR+BsxX6/B9hnA7TrXdH/RmmeQWMFkyKLXrZHrRQ9elA97 uHPA== 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=tmULx6TXXZaokjuqEySwxC6cIt7dliy8Z4QOOn/Vid0=; b=NhRo+ATierevlbYgnZHwrv8J+NZAwQvFBFlqxEd2/UfYlszFj3lq4fyoNl6HaRajqg 2lMXVk/H5VVHd3H1ZEnzeCIvLRaeBVmnDsY9ssMWcniSkyFRb7S1u7NBq6DwMU3cIjaS Z3LbdJyC21+e/J/1QibjlrjrLiUepuA2B+x6Fyx9lEcTW7KGkRRjd80EcPorjSJA5mWa R3F1zR+JkXUsodkEySj/PDLqHIwDd4J1OGAFC6a+DPgF2kBfZ6bL/E4FglQZpQeVe3+B hfpkw4IwkCcwHNATIK4FFQT60/ZdWnDeejrr/lNaW5RMT0UdjiupRAzrPaJGp5ZfmjrE vJgg== 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 y10si7542111ejf.165.2020.11.14.02.25.29; Sat, 14 Nov 2020 02:25:52 -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 S1726788AbgKNKXO (ORCPT + 99 others); Sat, 14 Nov 2020 05:23:14 -0500 Received: from verein.lst.de ([213.95.11.211]:50038 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbgKNKXN (ORCPT ); Sat, 14 Nov 2020 05:23:13 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 14F2068AFE; Sat, 14 Nov 2020 11:23:11 +0100 (CET) Date: Sat, 14 Nov 2020 11:23:10 +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 16/16] mm/filemap: Return only head pages from find_get_entries Message-ID: <20201114102310.GP19102@lst.de> References: <20201112212641.27837-1-willy@infradead.org> <20201112212641.27837-17-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112212641.27837-17-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:41PM +0000, Matthew Wilcox (Oracle) wrote: > All callers now expect head (and base) pages, and can handle multiple > head pages in a single batch, so make find_get_entries() behave that way. > Also take the opportunity to make it use the pagevec infrastructure > instead of open-coding how pvecs behave. This has the side-effect of > being able to append to a pagevec with existing contents, although we > don't make use of that functionality anywhere yet. Looks good, Reviewed-by: Christoph Hellwig