Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3308307pxu; Tue, 8 Dec 2020 08:41:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxuFu/r9wOptFlaFodN+RpjIGwpac6d0JlnhB6nzNXZcweGHHtXKXKuLeORPTuV9Fpq2dD X-Received: by 2002:a17:906:55d0:: with SMTP id z16mr23611171ejp.466.1607445710408; Tue, 08 Dec 2020 08:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607445710; cv=none; d=google.com; s=arc-20160816; b=AKFss1c3m0a6VdfbkVGH+r+RXug8irF+4l57fRmWX/rs4OZwmPawtEZrwdUf7g+huk emMr7+GjOrLMX5qegvgpCOsIkweKK2aMzSiOngHSnY1qr0a6cNVtQIMgBghI2pRQBPHC tSa7BtbIZmMzsIls2j4fJPd2+jsPKJxBDb9TMpDvosmoA7BZG1xE4G9kIr6pCXq4IlHp ZjykO/TG1ukwwMz3vdlDGwU7RCzT9a8/3c6GlVbosCqZCKx4Nn74gFTDemiDecibUpR8 yZnfcW2Bg78fSlqRipuhtoe0L2hvySScy0tPmXpgGDdi5IK3ctYmMipTY8m9qyf7RWJC 1dbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=tqXVZRYPQTEkkKePFefFUJy+7ACh7XW1khk2Ur7gsVY=; b=dW5G27XUt6L2C2B4QC23RHwmO55AKSE3tyEjzG9UBXSbA/WYm7FFQYlAbI2ZyXU6dp xyFQHx+2jr6enhjlinwVYAKwMYRWtyNAwxoC44AP3HfyF+SGAsHAPdoJQw/6shQga5oU tMSlFXiRWsiYfwkO3pcFxm9f/objP9jcQ7F5dAW/UHz7NDzKwOrCL6GFfcYipi2P8LDO Xo4rCIvWcZpWaFO2sx27hbg40OasEwK6HILqCC+yQDD1m1Mz6o4fUA4VmJrU8fHil0g0 66CaaWbmLY0cpXRKCa+hqusASJVkiJ3jo1mjKFUWCZt7E9tq21gg/IMT1KowOSwXGmA3 fA/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si8513101ejx.289.2020.12.08.08.41.27; Tue, 08 Dec 2020 08:41:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730446AbgLHQi4 (ORCPT + 99 others); Tue, 8 Dec 2020 11:38:56 -0500 Received: from mga06.intel.com ([134.134.136.31]:28073 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbgLHQi4 (ORCPT ); Tue, 8 Dec 2020 11:38:56 -0500 IronPort-SDR: GnUxrQ9zHboXsgQzKdFP/C8Y0q/OX5lEarL6nAYAFpS6yc/vWdGBIH9qvYA/pDyymCsOuhggNd hwdE/5SAZRiQ== X-IronPort-AV: E=McAfee;i="6000,8403,9829"; a="235521620" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="235521620" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 08:38:15 -0800 IronPort-SDR: vPkcZMeeZqXh6vd54T+E2QmFjfZ9AMaNHqWZAt/Wd0xuv0YZVDnmUEugJUuxnLBhX7DJaqzCIo wq1ybT1+EV6g== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="437442250" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.147]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 08:38:15 -0800 Date: Tue, 8 Dec 2020 08:38:14 -0800 From: Ira Weiny To: Matthew Wilcox Cc: Thomas Gleixner , Andrew Morton , Dave Hansen , Christoph Hellwig , Dan Williams , Al Viro , Eric Biggers , Joonas Lahtinen , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH V2 2/2] mm/highmem: Lift memcpy_[to|from]_page to core Message-ID: <20201208163814.GN1563847@iweiny-DESK2.sc.intel.com> References: <20201207225703.2033611-1-ira.weiny@intel.com> <20201207225703.2033611-3-ira.weiny@intel.com> <20201208122316.GH7338@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201208122316.GH7338@casper.infradead.org> User-Agent: Mutt/1.11.1 (2018-12-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 08, 2020 at 12:23:16PM +0000, Matthew Wilcox wrote: > On Mon, Dec 07, 2020 at 02:57:03PM -0800, ira.weiny@intel.com wrote: > > Placing these functions in 'highmem.h' is suboptimal especially with the > > changes being proposed in the functionality of kmap. From a caller > > perspective including/using 'highmem.h' implies that the functions > > defined in that header are only required when highmem is in use which is > > increasingly not the case with modern processors. Some headers like > > mm.h or string.h seem ok but don't really portray the functionality > > well. 'pagemap.h', on the other hand, makes sense and is already > > included in many of the places we want to convert. > > pagemap.h is for the page cache. It's not for "random page > functionality". Yes, I know it's badly named. No, I don't want to > rename it. These helpers should go in highmem.h along with zero_user(). I could have sworn you suggested pagemap.h. But I can't find the evidence on lore. :-/ hehehe... In the end the code does not care. I have a distaste for highmem.h because it is no longer for 'high memory'. And I think a number of driver writers who are targeting 64bit platforms just don't care any more. So as we head toward memory not being mapped by the kernel for other reasons I think highmem needs to be 'rebranded' if not renamed. Ira