Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp41032rbd; Tue, 11 Jun 2024 12:20:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYs1futr+siqZxw47TpqE+SOOoSHFFZRVwz98s2zWdDTrxs+Fx9eZV5iQvjTnGWWxjlNlOnL1RKBu3NuTyjknnug0uFgS2m7IL49DssA== X-Google-Smtp-Source: AGHT+IFMnQ4gYrJ2fQ7cHcnP9iMRzOWj/+PVGbjGDJed8SYAgFluRJzYwwTGchvMV7flkh76oyRb X-Received: by 2002:a50:8e55:0:b0:57c:75a1:2a14 with SMTP id 4fb4d7f45d1cf-57c8c30766dmr3179776a12.12.1718133599972; Tue, 11 Jun 2024 12:19:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718133599; cv=pass; d=google.com; s=arc-20160816; b=qHeZUoPtdKlfOqR36X9wZ5mgGaRK4ohLhntXB4CZD3SvxLVYXYremTExbjki++UrBT ux/3tCsV5z8ChDLi4VwzH15RsZu4wKaO4pllzZFp7gkm6HzQn8bf6eRSa7PrbI6GzPxl YwhgzC8s9ejT3x70ddz66DGlwcB42WtIz2aIoGiNiBqR+bL5Bw5UBPDxOO/uNEnKS54N 8Zs1gMvZTKYIA+PHln5z+wmWkXoLaRhcRCXXsff5WyEigQn8D1gFD28ZDlf6W0KIXP7r blIQetx0L7azJpk8/vGxF64K7tG2Li2KAnyIdIU/rDXJQkr22FfR1oI02QslyRmDPLId cnjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=jEeggShN2PxC9Vfcn6tZkQMtIb+6pr/j0fV0AJbG7qQ=; fh=H6CH34hcYenSB7FXrgY3SiQWBl/4Errpy/cWaxiK6f8=; b=HBKtAaoNAuUqnsOHDaATe354nqkfzg017tka+AAfr2OtQNGB0iaALlMw53JQGLS1k1 z/oqEDd2GtVtLdzDm6+t+9BhJt1SLQ0yuUvZIJ8qnCPgmvY4hRI5MK5/iEzkUh3dRpWX LsESbdgHPX5gNQSKrb8+lzUame3z9B5LIm27wA+MOFLvl7LTbdRvHg0TYfByPl9Myrsu pEGi0nyFKmsMrv5eHYy728X/GBMoTyc/wNj/4s59g6+whyi1J3lNWXS4hMvTZI7U6ESp qSKQliNV3rhw/SueCIIyqCrvh0Cc89EWmqFfJmhDt4eA/P3KGWQmiP7pisLzkZnnfvGE OhKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=eEh1Bqsw; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210493-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c72cd92c7si3646009a12.375.2024.06.11.12.19.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 12:19:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=eEh1Bqsw; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210493-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 B5C9D1F23612 for ; Tue, 11 Jun 2024 19:19:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51837824B3; Tue, 11 Jun 2024 19:19:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="eEh1Bqsw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6825D57CAE; Tue, 11 Jun 2024 19:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718133584; cv=none; b=AJH5uZ5eOpLMJSLM9nw3IvGtmCKv4fU2fTNUE5N0es54qiATMZ05vnwXDBuqhrf5/Qaiw8mi5WgKfFS9llzN7W88UC6aEIMUjH5ywO//7iOIqos0mh4cdzesdmNV0M4UUTq6LcWhjCBHqrhoUDVsl4nqGe3CrI91FCovGv3TRkk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718133584; c=relaxed/simple; bh=AUJ44aafNBmr/yleRRZzaXjkALQuPOf50mYZh00Z5XE=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=iWjYZx9Ur+l7WUoOOV6LcXy232K8fmzqXC+FVlzUXZAQDzjmyfqqoKfrwgUCxYmd59jhs924Y4Q0qi0RD7ZoJ08RlZqKi0pLtdX0Gq9t9kfiSuQEHvMcvsq7Zh+bytTQ4V+1w11U9emOT/p9dNGNNMwQUGzEXJ06uHdkFadZXSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=eEh1Bqsw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CA6EC2BD10; Tue, 11 Jun 2024 19:19:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1718133584; bh=AUJ44aafNBmr/yleRRZzaXjkALQuPOf50mYZh00Z5XE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eEh1BqswoHduG9oop33Az9TKXljfW3F9d2mhubpTL00w+7sI2Bxwr+YQyOGwZl7sK MhJWEusJFvap0UM4BgBZ5H75YgdngB52ZuTWLHaFqC+jP2aZPOLpyM8OKdLaQDRdBi 79cuL9urUZBnnBw995W3elJj3j5pLY0GIPM3fFx0= Date: Tue, 11 Jun 2024 12:19:42 -0700 From: Andrew Morton To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, xen-devel@lists.xenproject.org, kasan-dev@googlegroups.com, Mike Rapoport , Oscar Salvador , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Eugenio =?ISO-8859-1?Q?P=E9rez?= , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Alexander Potapenko , Marco Elver , Dmitry Vyukov Subject: Re: [PATCH v1 1/3] mm: pass meminit_context to __free_pages_core() Message-Id: <20240611121942.050a2215143af0ecb576122f@linux-foundation.org> In-Reply-To: <2ed64218-7f3b-4302-a5dc-27f060654fe2@redhat.com> References: <20240607090939.89524-1-david@redhat.com> <20240607090939.89524-2-david@redhat.com> <2ed64218-7f3b-4302-a5dc-27f060654fe2@redhat.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Tue, 11 Jun 2024 12:06:56 +0200 David Hildenbrand wrote: > On 07.06.24 11:09, David Hildenbrand wrote: > > In preparation for further changes, let's teach __free_pages_core() > > about the differences of memory hotplug handling. > > > > Move the memory hotplug specific handling from generic_online_page() to > > __free_pages_core(), use adjust_managed_page_count() on the memory > > hotplug path, and spell out why memory freed via memblock > > cannot currently use adjust_managed_page_count(). > > > > Signed-off-by: David Hildenbrand > > --- > > @Andrew, can you squash the following? Sure. I queued it against "mm: pass meminit_context to __free_pages_core()", not against > Subject: [PATCH] fixup: mm/highmem: make nr_free_highpages() return "unsigned > long"