Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2345745ybv; Fri, 21 Feb 2020 13:49:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxqmEyY7Qr7MFABeTBLuI6xHOpwFwMmQvlbkKnR8SsPXgYXkWacbg0U6IlPMuLJ4PjPZAOI X-Received: by 2002:aca:6749:: with SMTP id b9mr3686223oiy.13.1582321754180; Fri, 21 Feb 2020 13:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582321754; cv=none; d=google.com; s=arc-20160816; b=F8c49tTqkUd1bOk3gpnHLlGxWn8TjeBhvS4CxJNtkUCV7DXBkDxmWcxYeS567SUnIz S2VTMX3P59Cq6UhN2FaIlr3vaL6zxnQ9giB969VGFQgfdev5FkUsLPVhCM+D6t8P+FrR NyT4tOJEi8X4+W4Kc+Q0YpnVX0bAIRg7TVJZQ3LwmUj2zoDXhf/XGFWefG93yOMXE6In anymrkxRdKR4nUpMYj1+UekLPlLAqKl5omqxHGe/X6nuIjB5AjibuihheWaBXJzwPxNs /DlbANkfidHJoqIAnDpeH3rcCdQyU2hHddoeCsrIsafAxpcG5JEC5H9pXCzSthIo6eKY NDfg== 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=MjU0vaJ+i1WQ4UQpS8eKlaynh2uwVXzGNQNy57Q9C9k=; b=TQYc3KzmIQS6XRPXVEvrUtMtlvzb6Dck4TSQer4Hsu5D0KvKzuLquBGIk/t/aY7h5d P47v0vtB/3l67UN1UT4CtUvrXMhtjVgjBX3VtwmfqVzc08PAhHqHsIMpPhBunsWw0FlB AbNr6t3NKl1mgWlbHBMuFq8PdgiPwQWj09JnEyo95PtVnCG0MEM7hyE3gQ8BuMY3Zv+G 2XO3NJZWfXGGAWqpa5hTWZaMawKt9kN+B9qWhRjr/3ziw/fQTQUf/u0c0Jh+uPPik81b 1e3pRwcso+WyIeXSCHKIudkLpmU/E1HdiafOTfxszhOPPwzsftQFWZPl70kV8gQyvy0V TdZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iCNdT0BZ; 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 y186si1392145oig.241.2020.02.21.13.49.02; Fri, 21 Feb 2020 13:49:14 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iCNdT0BZ; 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 S1729052AbgBUVsz (ORCPT + 99 others); Fri, 21 Feb 2020 16:48:55 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:52348 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728135AbgBUVsz (ORCPT ); Fri, 21 Feb 2020 16:48:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=MjU0vaJ+i1WQ4UQpS8eKlaynh2uwVXzGNQNy57Q9C9k=; b=iCNdT0BZXgtTW3Fw9E7mV20LZ3 6bABfCOOFRCJ7uEiieuVoc7VQvPYz9c1AqPQS7RqHIO2SPtmECRCJ7fINKg3kWrEwzycOHzoI2EXq gb8xBz4Q6YqdlmdYSYmNzPYMGLnkARpEro+4SyAMM0qv/bPjVCXcHHSSe2kepGwYnmLclyWoT72Ri xVH+asjJnQ5gia6IN546JKq8u1xVU9xK4MZ7CcV53GDFQceXlwOtV+auqB/eJnS3NjFkIZuYn1p/U bzlnG8k5S9m/fPbCpIe+WYxJl419e2ENRT98jQ6jjA5WKiplo70Ono1aN5F+tvL7N8eBzKyaRDymg 11ulvQcg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j5GAH-0001lk-Uz; Fri, 21 Feb 2020 21:48:53 +0000 Date: Fri, 21 Feb 2020 13:48:53 -0800 From: Matthew Wilcox To: John Hubbard 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 v7 01/24] mm: Move readahead prototypes from mm.h Message-ID: <20200221214853.GF24185@bombadil.infradead.org> References: <20200219210103.32400-1-willy@infradead.org> <20200219210103.32400-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > ...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).