Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp149689ybv; Tue, 18 Feb 2020 19:56:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxWX2T0MfzCSU3XxLFZ6Vgs2Gi3OSS71EQ6Rvmqh1jlRSQzTwv9GZjxh3Fvl+iTxYcwba4e X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr17232874otd.372.1582084571220; Tue, 18 Feb 2020 19:56:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582084571; cv=none; d=google.com; s=arc-20160816; b=ctEQ0wj5al6oRXgdTZkUiU/ZM9q+8XTfoLCJvSFkOtSxrN/2pJy433CeF+ZnJp2cYS usYTcv3oWjbEGlCv8UfNxyE2krjBjzmaXK3+d9wFGw/R2blvtRbrNXdjRaJjE7hup4YK 6eIadgx+UiNyjdAjw4d8R5lotysPXW7OH0yB1avKrOjdeLNaCZrjNzvlrPN3hFiFwyO9 16u2QPhll4RGclKJUuVrifXCNek3Ywpf7Lfae6QbCcZBSAkC4PDWdHF5849vNJqlAx+P z4mgUE6k3gl4nekqKga5J0trAzd6OmABNwBPMVJc9jTWgRdCIjFA4jkwXzhPoqz6NPTp 02xw== 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=2nAAEli+jakfqKTCQ/G+NGjm0+hN5m9VbdiYyldCHgc=; b=zXvWKDKYvzhVtDgjh9kikAzG9UWZOE/flK9PJX/G+2owAZPF9iHtZ0bqusNbL2pheC F0hGiiTsnHceTFRvGnJOe0Z4Z5nzf/ZEIjKKO1PeVkFKe38DTCcQbf7navWHCHS+Vafe hOyiX89rlXqn6+j78BBkRWEJjaRbgpmyQU9m5QNhx+kuUR8Lgz2NwJ0SyrZzRIskLy+V KcrDZuXP1nH8wDBsq6nyhSLdKuGTd7vOH9TShywEcuHAGUcUn201pYPOutxrnG4DQeRp 4W9l8yUarXPeqUCPflziJFpaGmxS54fdHfEvgvFgFqs3Vzkqmyj8IDmAPypXczRwEtAl 6qTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cHpc7qeS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si590107ots.38.2020.02.18.19.55.58; Tue, 18 Feb 2020 19:56:11 -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=pass header.i=@kernel.org header.s=default header.b=cHpc7qeS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726617AbgBSDzx (ORCPT + 99 others); Tue, 18 Feb 2020 22:55:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:46268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbgBSDzx (ORCPT ); Tue, 18 Feb 2020 22:55:53 -0500 Received: from sol.localdomain (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCCEB206DB; Wed, 19 Feb 2020 03:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582084552; bh=ra63ctCM03qQ/yjMX6m08SRFO6UdUhDwmhqww51jeug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cHpc7qeSZ/gAs6+Ko/Z9/c8wDmwW8WTd6Y9ysIVgBbEI5SGfvT8WdEDSgJvrnpRtd JfJgLR87X7pDZj1ZfCs4p5yM6PqBSZH+kh5NSfb+dGb2Fgl12LstCggu8oVIaphCC5 XsxYNaY/zixWmZHQTqiVBZLArwLDm8F1awAYyw38= Date: Tue, 18 Feb 2020 19:55:50 -0800 From: Eric Biggers To: Matthew Wilcox Cc: linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, Junxiao Bi , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-mm@kvack.org, ocfs2-devel@oss.oracle.com, linux-ext4@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH v6 10/19] fs: Convert mpage_readpages to mpage_readahead Message-ID: <20200219035550.GE1075@sol.localdomain> References: <20200217184613.19668-1-willy@infradead.org> <20200217184613.19668-18-willy@infradead.org> <20200219032826.GB1075@sol.localdomain> <20200219034741.GK24185@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200219034741.GK24185@bombadil.infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 18, 2020 at 07:47:41PM -0800, Matthew Wilcox wrote: > On Tue, Feb 18, 2020 at 07:28:26PM -0800, Eric Biggers wrote: > > On Mon, Feb 17, 2020 at 10:45:58AM -0800, Matthew Wilcox wrote: > > > diff --git a/include/linux/mpage.h b/include/linux/mpage.h > > > index 001f1fcf9836..f4f5e90a6844 100644 > > > --- a/include/linux/mpage.h > > > +++ b/include/linux/mpage.h > > > @@ -13,9 +13,9 @@ > > > #ifdef CONFIG_BLOCK > > > > > > struct writeback_control; > > > +struct readahead_control; > > > > > > -int mpage_readpages(struct address_space *mapping, struct list_head *pages, > > > - unsigned nr_pages, get_block_t get_block); > > > +void mpage_readahead(struct readahead_control *, get_block_t get_block); > > > int mpage_readpage(struct page *page, get_block_t get_block); > > > int mpage_writepages(struct address_space *mapping, > > > struct writeback_control *wbc, get_block_t get_block); > > > > Can you name the 'struct readahead_control *' parameter? > > What good would that do? I'm sick of seeing 'struct page *page'. > Well, no shit it's a page. Unless there's some actual information to > convey, leave the argument unnamed. It should be a crime to not name > an unsigned long, but not naming the struct address_space pointer is > entirely reasonable. It's the coding style the community has agreed on, so the tools check for. I don't care that much myself; it just appeared like this was a mistake rather than intentional so I thought I'd point it out. - Eric