From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02876C25B0E for ; Wed, 17 Aug 2022 02:29:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 50BDD8D0002; Tue, 16 Aug 2022 22:29:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4BB758D0001; Tue, 16 Aug 2022 22:29:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3A9D38D0002; Tue, 16 Aug 2022 22:29:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 2C8448D0001 for ; Tue, 16 Aug 2022 22:29:00 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 824B5A04E7 for ; Wed, 17 Aug 2022 02:28:58 +0000 (UTC) X-FDA: 79807501956.28.D53793D Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by imf02.hostedemail.com (Postfix) with ESMTP id E0043801D9 for ; Wed, 17 Aug 2022 02:28:56 +0000 (UTC) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1660703334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UcckSVVduEY7rXQmH+e15p8lmhvgq1sdGuVhQBpEmWA=; b=vHjFI5vzngxaomZzpE/rnNCroJr+J5RfyCMx8r6HN4bzYZGPB+RHyQnFFS9noDGLxX0cNt xG8TfzHxh8Xy+nWg2hJzxwTxV+3hnfDRCW7ezXKdgnUECKYX1HE1cHqaGMMPAs5jLXdNyf pKTFfm5y1ou1kW3zoX70CWJnV4ueY8A= MIME-Version: 1.0 Subject: Re: [PATCH 1/6] mm/hugetlb: fix incorrect update of max_huge_pages X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20220816130553.31406-2-linmiaohe@huawei.com> Date: Wed, 17 Aug 2022 10:28:46 +0800 Cc: Andrew Morton , Mike Kravetz , Muchun Song , Linux MM , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <117818F8-49AB-4E85-98EF-79E62BFCC7AB@linux.dev> References: <20220816130553.31406-1-linmiaohe@huawei.com> <20220816130553.31406-2-linmiaohe@huawei.com> To: Miaohe Lin X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660703337; a=rsa-sha256; cv=none; b=w7hPa6Fh2oeykJeWw8D2eo/eMup5VioV9yypLVNGYadc+7Tp1pq/rHiuowL53y+xbYMrbO 5HyFrTo0w9q3bEP28HwaccaWOQ0XU6hu2YaDBKYcATIZ9IbQ4D5mXJ3xdgnGNvRuS1TONl czKQ7H+eSaQ/DPNB2nhnK1dZiXSmAU4= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=vHjFI5vz; spf=pass (imf02.hostedemail.com: domain of muchun.song@linux.dev designates 91.121.223.63 as permitted sender) smtp.mailfrom=muchun.song@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660703337; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=UcckSVVduEY7rXQmH+e15p8lmhvgq1sdGuVhQBpEmWA=; b=C4tJcLMw5q3TfdrP5mIY4FWqN1QS9n/TlD1QCLIt/KkG+2RItm0bUOG1Mn0FTHRWQHNCV4 i2U8J4WzyATUGvg8RnB09hFBtegHwwqdz4LX8uFDTFjV0tKtgR3OcI5UvsmqLdwgfgIBZq aQ72x78TLqhxzbU4E3uGEZMw5UnOCbI= X-Stat-Signature: 1pshjj3jf1zfita78g3r9re371rke473 X-Rspamd-Queue-Id: E0043801D9 Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=vHjFI5vz; spf=pass (imf02.hostedemail.com: domain of muchun.song@linux.dev designates 91.121.223.63 as permitted sender) smtp.mailfrom=muchun.song@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Rspam-User: X-Rspamd-Server: rspam03 X-HE-Tag: 1660703336-916809 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: > On Aug 16, 2022, at 21:05, Miaohe Lin wrote: > > There should be pages_per_huge_page(h) / pages_per_huge_page(target_hstate) > pages incremented for target_hstate->max_huge_pages when page is demoted. > Update max_huge_pages accordingly for consistency. > > Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song Thanks.