Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5457514ybv; Mon, 17 Feb 2020 20:48:32 -0800 (PST) X-Google-Smtp-Source: APXvYqx2IEt4rJZzX1OnjNZdZ8QkDTGox4hdQwK9q7S4iGQTpItVJ/8+seSmV9NUqOvXGIZNFDTJ X-Received: by 2002:a9d:7e90:: with SMTP id m16mr13707583otp.227.1582001312823; Mon, 17 Feb 2020 20:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582001312; cv=none; d=google.com; s=arc-20160816; b=W78pqkAgZDHn9f3qnG/FatrpJITRnNgPFUZQALqHY9TLW77MnGue04wyyJAEw0D6+c O788pK/fqAkcC3aqE2Fz5LenUdN+PKZkdSSr48ZWDEENypI2WdS+3jANUYMs0nHuZ3lu 8THDFcDut42GhROjvy5wLqxE7NxlmfbuUc0bSZ5OjkS6M06kp9/RghcQci70LPAvrwnC laUUHjBv0yabyGk1w1emxIasJdAcHU8OOTfmmtQK4sRqaw1TYLzfW+7vSPqO/UuNWJYj NumZ94ZS+Rbwo2jI0uaMUd86bnQ6JiZ6qF2NpGLt97vudg4rz0VAOX9bpT998BvnXdTS m/qw== 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=m4ud0u2sLWITLUKJoGR5DeF9U1Ze1jhkQ+nQbZ1XCnQ=; b=LMzYNpxzbof6OvQ6hicESATEcGz3izvd/HR9f/iIciDk8/7Gok/IzkToVnDznuom7n 4srzR7nrdVwC/w55UWrTDuEJGYw38fYEkCkOn7x2DnjdICno4dP/IST6DrxL7L9YYVIK QiDIaiIPV/QoxLCt9auP+LXr1xCWN424zdE9bVU7d3SQ3/QbKCUy7KDXD2iIOcJtC2JP 6+3jF6dQCJoUOFPSYRFS3LHpVeiYQPoxOmjQLnfQQRtGzlEl50O1+lwZv34LNrQ0Qx5x veLYr4edkUFMtbVP6EBTpbRC/eET8SFVcZXSULow4Glpq1uVxlIfeWmxSpfF056zHCHf 2PRg== ARC-Authentication-Results: i=1; mx.google.com; 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 p1si1256936otk.42.2020.02.17.20.48.07; Mon, 17 Feb 2020 20:48:32 -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; 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 S1726327AbgBRErg (ORCPT + 99 others); Mon, 17 Feb 2020 23:47:36 -0500 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:33849 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbgBRErf (ORCPT ); Mon, 17 Feb 2020 23:47:35 -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 D76033A19D6; Tue, 18 Feb 2020 15:47:31 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1j3unC-0005hw-70; Tue, 18 Feb 2020 15:47:30 +1100 Date: Tue, 18 Feb 2020 15:47:30 +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 01/19] mm: Return void from various readahead functions Message-ID: <20200218044730.GF10776@dread.disaster.area> References: <20200217184613.19668-1-willy@infradead.org> <20200217184613.19668-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200217184613.19668-2-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=20KFwNOVAAAA:8 a=7-415B0cAAAA:8 a=XMwvCbM7UuQ64GsG45gA:9 a=CjuIK1q_8ugA:10 a=1CNFftbPRP8L7MoqJWF3:22 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 17, 2020 at 10:45:42AM -0800, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > ondemand_readahead has two callers, neither of which use the return value. > That means that both ra_submit and __do_page_cache_readahead() can return > void, and we don't need to worry that a present page in the readahead > window causes us to return a smaller nr_pages than we ought to have. > > Signed-off-by: Matthew Wilcox (Oracle) Looks good. Reviewed-by: Dave Chinner -- Dave Chinner david@fromorbit.com