Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2456455ybv; Fri, 21 Feb 2020 16:16:04 -0800 (PST) X-Google-Smtp-Source: APXvYqy/2GUo6bwXA7cTdkI6IVxT1e0qqASaYT6IQ67cJjvlwI52w0vfv7XrhkiAjI6K8z0MBaeD X-Received: by 2002:aca:c4d2:: with SMTP id u201mr4356245oif.54.1582330564427; Fri, 21 Feb 2020 16:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582330564; cv=none; d=google.com; s=arc-20160816; b=MwWeFsyK9Kav6fWVvW/o+lbdY9UJ8h0r3a0ltbBxqSPDjoWqY6ZNl+f0Re4jDGE33B sqUAxLkvha4se7D+4QAH7+5gaNK90PBblyziVi0ziAF5rldmKictBvoDKZRcu4O2e4QM n+jpEALE+fiw1XceYb4mc5igrI/6kcpd9d7Jt3xB5ZWgruKU1DUP4F8Fg8LO29b9gn+s YB8UupAKSrpdMO1iyu75YiN7tRVkkcw7OsY0yOQJP78ekbgKSpHPMuA3RloXluwmwjsi GaE7NShmlcxe/CVXwiOKULO85h90H0ngAEkI7Euw6qq76I5K6Gkyzr3N1wWBz/ftBNin Fa2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Xu1W/y2f9OTxnj+6T8DBBjck/f2ICJjqDeKYJhM73bw=; b=P7X9SDujVmMLnw7IStrpWzhRZkgOqsw94fR8/ZH4TxLC1zK11xIkwNvHqtlghEfpVq ne6KgykfULAfZkUzcN972hL0evKzMk3wmTYdxBQ+IYhI6WfKhzAZJqA5zwPYYDrNovgX A+XyNO1NoN8pdZeU4hDOK+uGJzv1QK+W6yMuVkXQNjK9dibqTZkBXMQ76213C9doYymG hLLV+zPAGWABJyc6KcFiqAWYnPebBBE1Ww/QNH2fwtfPsdP0HFbVYMrZ909T5Z2JYuTo ualyphI9+wEA9knoeszt8UAYzOFRXp5li/8M4qQTGIGYYIm/b+f8jEZUq3lDCeSF8ium yUhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=p2+0C6I2; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26si2291117otn.180.2020.02.21.16.15.52; Fri, 21 Feb 2020 16:16:04 -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=@nvidia.com header.s=n1 header.b=p2+0C6I2; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727525AbgBVAPe (ORCPT + 99 others); Fri, 21 Feb 2020 19:15:34 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:19532 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727326AbgBVAP3 (ORCPT ); Fri, 21 Feb 2020 19:15:29 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 21 Feb 2020 16:14:54 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 21 Feb 2020 16:15:28 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 21 Feb 2020 16:15:28 -0800 Received: from [10.110.48.28] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 22 Feb 2020 00:15:28 +0000 Subject: Re: [PATCH v7 01/24] mm: Move readahead prototypes from mm.h To: Matthew Wilcox CC: , , , , , , , , , References: <20200219210103.32400-1-willy@infradead.org> <20200219210103.32400-2-willy@infradead.org> <20200221214853.GF24185@bombadil.infradead.org> From: John Hubbard X-Nvconfidentiality: public Message-ID: <69fa8779-3433-9d35-a1f4-f115dc86c6d8@nvidia.com> Date: Fri, 21 Feb 2020 16:15:27 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200221214853.GF24185@bombadil.infradead.org> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1582330494; bh=Xu1W/y2f9OTxnj+6T8DBBjck/f2ICJjqDeKYJhM73bw=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=p2+0C6I2/yxvNQ1pZnv87YfPksTddG+e8cc03+sVRvODjU2CaK7MWQBiokHBWhwgb ieVI22Ga85j5LMOJVhYhtaccRh8zhO2H+xRsWBU/P8jaMdk1KeAHP1UgdQZbuh/fxI hzO1rCi0fPdivx/Gdy87keJKQLfBTMl82lrGPg+HtMx4bbn1scu0JW30tCh15BSQmD mQSimv7RYwfVWTinVZWGntdq5fdSKt8II8eY04QJynTy8RS0zcVz5otr5kwPPCZ2pE v1Ek68IoRy4J0my4VYUXkHH4q/cEli9/t/FTx/7/JWNBZEw7tWg2FKjPvsTsMCyd6G n45AbsLmye9OQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/21/20 1:48 PM, Matthew Wilcox wrote: > On Thu, Feb 20, 2020 at 06:43:31PM -0800, John Hubbard wrote: >> Yes. But I think these files also need a similar change: >> >> fs/btrfs/disk-io.c > > That gets pagemap.h through ctree.h, so I think it's fine. It's > already using mapping_set_gfp_mask(), so it already depends on pagemap.h. > >> fs/nfs/super.c > > That gets it through linux/nfs_fs.h. > > I was reluctant to not add it to blk-core.c because it doesn't seem > necessarily intuitive that the block device core would include pagemap.h. > > That said, blkdev.h does include pagemap.h, so maybe I don't need to > include it here. OK. Looks good (either through blkdev.h or as-is), so: Reviewed-by: John Hubbard > >> ...because they also use VM_READAHEAD_PAGES, and do not directly include >> pagemap.h yet. > >>> +#define VM_READAHEAD_PAGES (SZ_128K / PAGE_SIZE) >>> + >>> +void page_cache_sync_readahead(struct address_space *, struct file_ra_state *, >>> + struct file *, pgoff_t index, unsigned long req_count); >> >> Yes, "struct address_space *mapping" is weird, but I don't know if it's >> "misleading", given that it's actually one of the things you have to learn >> right from the beginning, with linux-mm, right? Or is that about to change? >> >> I'm not asking to restore this to "struct address_space *mapping", but I thought >> it's worth mentioning out loud, especially if you or others are planning on >> changing those names or something. Just curious. > > No plans (on my part) to change the name, although I have heard people > grumbling that there's very little need for it to be a separate struct > from inode, except for the benefit of coda, which is not exactly a > filesystem with a lot of users ... > > Anyway, no plans to change it. If there were something _special_ about > it like a theoretical: > > void mapping_dedup(struct address_space *canonical, > struct address_space *victim); > > then that's useful information and shouldn't be deleted. But I don't > think the word 'mapping' there conveys anything useful (other than the > convention is to call a 'struct address_space' a mapping, which you'll > see soon enough once you look at any of the .c files). > OK, that's consistent and makes sense. thanks, -- John Hubbard NVIDIA