Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3148325pxu; Tue, 8 Dec 2020 04:57:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqrGrJdVXcy16Yeb52jqMwMHPfGOxb/k8WCb8sfrWgULbIRBKcD7EySOBFhB9FLuKrfzqS X-Received: by 2002:a50:8a8e:: with SMTP id j14mr24854988edj.87.1607432245602; Tue, 08 Dec 2020 04:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607432245; cv=none; d=google.com; s=arc-20160816; b=FKt5sFnP0OUh2x1aMfumVfbEK8M954C+d9PcTW+ujzN9dVyXUgqUU331bIh9nUM8Fn jUy3j+/BENGMfmIc2KO7kdA9RyhnDa/bunmD9znyS8Vzq5VSZUV67jZZ92Kcqnc1zWUS ZStFdLIlO918vRHx2VV9xO9fPchHoUy8BGwqLDHtTDySkPRTFRKLGyXp7vFzZ6WmoPi+ 3E37Uz5/Sbv+nflzk0wYasJvoEWuvWlxpcgCfp7RSXf7xol8oNtBfb6M2pT4+AoFIBaZ VBczT8diYeDhrmP9cSoIp2cMSoKXEF6skZBw/ui+fD/WjvU+UH/Kj24V9j6pjbmfKN28 2Yog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UNxXJNXqQX33pzDKLkLUQwPsiKXBBcwJYZRxFVbPnps=; b=JuH5i+1tu3Woa2UKG627Oji7aq0yC6xJbLXvRMd9F9zwqHsk0Qbr9VWTdOxFs+4u03 9QgPPPXkvlV1ZO2B5UBxEksS8sEDvb/amRwC1zszQURR2j48+RAzBuzj/R9xqpp3UoME PsVUA11pQJwZkw3qZ6FmPSOsg42FFZTbb+7NGSOqdFA6Ml/u5IudzdudWzH/ctT70Oxs B3tA4xVsPFlJOsdMU9X/mD0Y6CbKjG3WNG8VE5DPGwapHwhYFSEKPMG2O8UdajzPzPpj fUGwUOoUSnfDbCI+NTE6HnaS20vxcGMkXBoQ6YqR9DooE+R/oDLHJtbwW6ye//ftvrm+ cwLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="O/IQVntJ"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r12si8105503ejs.382.2020.12.08.04.57.02; Tue, 08 Dec 2020 04:57:25 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="O/IQVntJ"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729543AbgLHMYI (ORCPT + 99 others); Tue, 8 Dec 2020 07:24:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729388AbgLHMYH (ORCPT ); Tue, 8 Dec 2020 07:24:07 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48261C061794; Tue, 8 Dec 2020 04:23:27 -0800 (PST) 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=UNxXJNXqQX33pzDKLkLUQwPsiKXBBcwJYZRxFVbPnps=; b=O/IQVntJZbkpB69wJ39eyVCtkh JJARkVk4MvbcQkuYX8rGTsvb5Rnge7YOct0s4PSHnT8xJQQ3Z3HO/eEacoUd8ngR4xNlDzEYf0XEA Y1fuio0PpOhmsPUHvCz0tsnCrzYCRFQ7/NXClDyiron7GGQy5BKz9xb48TpFc969jU7mPY48b8tr9 IiEkGx4OcDfrwzT/IxJum56BPO5ug6IBVYKBxLTiz+zeZm2T9WaKxY1B2hLi/WIdV2LHpG0tebefB CzhZR/bwnsyYY+guh6tWs2ghinTb9ieumMIQFRnzfmwVXsrNClVsLUjiC/UUyMCoFu7tsdcYRybJ4 RFGAsSLQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmc1U-0002xv-Sc; Tue, 08 Dec 2020 12:23:16 +0000 Date: Tue, 8 Dec 2020 12:23:16 +0000 From: Matthew Wilcox To: ira.weiny@intel.com 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: <20201208122316.GH7338@casper.infradead.org> References: <20201207225703.2033611-1-ira.weiny@intel.com> <20201207225703.2033611-3-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201207225703.2033611-3-ira.weiny@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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().