Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp773577rdb; Thu, 15 Feb 2024 15:26:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEajMOQmror9e1BYCHL+wcjwxiT+EAvWU+P3oGqjb/fF9yFxV2P8v4w+G+mz8XGXH8cmWSWdEW4Ug+A8N3F0PVLyrUld+IChJuAL95AA== X-Google-Smtp-Source: AGHT+IGoSxZ1IUjqUSW9wQDyPIeFhlzyZhOPBjbk6EBrtW1ywnI+8MKuG6Pw8dGGa2W1fwgECv7R X-Received: by 2002:a17:906:2c4c:b0:a3d:997c:30c8 with SMTP id f12-20020a1709062c4c00b00a3d997c30c8mr2253558ejh.56.1708039574458; Thu, 15 Feb 2024 15:26:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708039574; cv=pass; d=google.com; s=arc-20160816; b=JkS6lcewUkO/odzzEHfeQKSST1aAC5ng7VUHQCgdX58OsPowV6BXBX8rc5mHUEqFq0 g5l84HMRDFZn9nLvEy2FcaOYs0kKBNGlh0csEWPkzJE7Oo/req1GRz7TAt3pMeqvkCgU 9A8MxfceTOt+86t6ePeNyjoyIcQtyJtozDqvOlqCDCmoDRbpUbaBZrNLEOd7QpZ+bZeX UrdsQ9IVk4xZCvyvSFDLmAk8TAvL20HKrrhUIfhBwpa/8q9op3wuLxgo4VRyWeXoDU2g M1yUDaboVFsWg9ee5W9idw6HOyN9VGRx/uTPqJp9nNl+K7b8PtVvhY5U/yoNFDwBo6e8 mtnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P4QD/ybns2/Bgpbe3KYdtzHKfNJTrHM+ftFWOfy2J0w=; fh=5XoJhlOFW8IBTQIFauDQ3XF+6ndRUUNQIOE4zvVj1WU=; b=DQShDp/VGlKErr2fvdN+obttatTUfnWrjX3RSbl48tVV2IislwS3y1rYomkilCCkN6 IyP79brEtESTd4RraJlstZ9TUirDooTis5p8h2Mi/56VcxFC5sAxkoLmUNOiLssqkIgy cXH1OlTkwOjzSvDnWVK3M2ymyi0Ez3NALECEADYuYULDtiUfbqtThX9f7hmF7Rxhbvf/ FYhdmx90j2SMMWrQG4PnbhRRy6t4bVmHOKwitSkvUvIG9DEZkeW6WRTMLe963i46S/Tn LfFqJTPQfOcwF+Cs1jM6IFI9VvlDygqSZ2XrSdIY9umSq3Rd6qq8Wb76MaMkHF8YX0f4 dboQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jUrJy3Pf; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-67573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67573-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h8-20020a170906260800b00a3c02c21607si1087195ejc.357.2024.02.15.15.26.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 15:26:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jUrJy3Pf; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-67573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67573-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D11A11F22D0A for ; Thu, 15 Feb 2024 19:26:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EA13139599; Thu, 15 Feb 2024 19:26:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="jUrJy3Pf" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09BD813956C for ; Thu, 15 Feb 2024 19:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708025173; cv=none; b=PK7PtfGBJu9x9H223jaMQbGcYF40kB8zg2nnAotBNq9qoroVADVj3JJyEMv2iCK31pLxM6XvoZnDkhQkLbRmKJugukAv219/bNiczfhP/+7XLF0G/E9vhZhsBulFB9Y7m0OlP8PuYHnHZXXFy2gt5F4p88EGjOgP6WHaAPpFPYQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708025173; c=relaxed/simple; bh=0oSEEi9BR842uBQn+HVEGnH5l5zaquhPajknu+34sHc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oz3vTtnR/7nbF8EprpdzqRQp3gJBVUSvUri+5MXP3TTiaz8B40/hDnUvNMJyXI2QAfHRwDIZShjPE8tVtIdpvJcwa+ZTckkxfQoUS286UxaAgnOH21o+pN5IL4dte1Qg4Or7LTWP33DfPZ8wbpiFje+8x3eFuS9OUO3X22Nwvzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=jUrJy3Pf; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=P4QD/ybns2/Bgpbe3KYdtzHKfNJTrHM+ftFWOfy2J0w=; b=jUrJy3PfE4KJcZTW8kZOD25Zu7 nQCYSvKD6rDLOqK3K8s/lEr9mkfz0c0700RMj8KQFIrhROQjqOcfGePF7esPr1gcMqN/n3ptt7jFp m5UNlH+kNMXRv6rXJpIv2YPhU21fWNQ49WpKHzR/1I6GR7gzLnx0lB9xFUJZ4HtaDesKPuFnzGRWq Lt+usireCP1cricIQzDIH+4C1PKBwnGR3+YMrixekZEIZ/2U+yl2PoAiCvDMtsZSb1Su0LjPgh/+9 1mdkmuSKgmyw9jQ2eDe7G1q/1QTnpYCSK2PCF7Ge6z+/Hx5+zo/WXchuU+s3v1fbuPT34h+Soe7sc o0weYslw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rahN3-00000002ek0-1Ovh; Thu, 15 Feb 2024 19:26:09 +0000 Date: Thu, 15 Feb 2024 19:26:09 +0000 From: Matthew Wilcox To: Max Kellermann Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 06/14] linux/mm.h: move page_size() to mm/page_size.h Message-ID: References: <20240215145602.1371274-1-max.kellermann@ionos.com> <20240215145602.1371274-7-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215145602.1371274-7-max.kellermann@ionos.com> On Thu, Feb 15, 2024 at 03:55:54PM +0100, Max Kellermann wrote: > Prepare to reduce dependencies in linux/mm.h. We're really close to eliminating page_size(). Just 23 callers left. As such, it would be a mistake to name the header after it. I don't particularly like how you're splitting up mm.h; I think the real problem is all the code that says "Oh, I'm allocating memory, I should include mm.h" instead of including gfp.h or slab.h. But if you must split it like this, at least call it folio_size.h