From patchwork Thu Aug 1 23:25:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaiyang Zhao X-Patchwork-Id: 13750928 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 DEEABC3DA4A for ; Thu, 1 Aug 2024 23:26:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5E3C86B007B; Thu, 1 Aug 2024 19:26:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 593896B0083; Thu, 1 Aug 2024 19:26:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 45AAF6B0085; Thu, 1 Aug 2024 19:26:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 2E4466B007B for ; Thu, 1 Aug 2024 19:26:07 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C89EBA776E for ; Thu, 1 Aug 2024 23:26:06 +0000 (UTC) X-FDA: 82405261932.08.5434D74 Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) by imf09.hostedemail.com (Postfix) with ESMTP id F2A8C14000B for ; Thu, 1 Aug 2024 23:26:04 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=cs.cmu.edu header.s=google-2021 header.b=fX9rfC6n; spf=pass (imf09.hostedemail.com: domain of kaiyang2@andrew.cmu.edu designates 209.85.167.172 as permitted sender) smtp.mailfrom=kaiyang2@andrew.cmu.edu; dmarc=pass (policy=none) header.from=cs.cmu.edu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722554707; 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: references:dkim-signature; bh=IfFTzO1DbkzzA6IG/pk4zpXy1DZbOX87HqqGBXzn01Q=; b=4WA2zYCh7SkN4C7uDteI3Id+5ThauMgF258d99I9V1fC3u0KL17rRVZ8yu7rC5W2/qUPxw BJmLvos4K93yR+l9sQN39HBLkjGqNuoFJ9acHjPkUVU7Ud5HjDjGZixWjWUYnXX15Fz0Q6 ofq6X76REGWzEcbUKuHICR7Gk53Sr1w= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722554707; a=rsa-sha256; cv=none; b=b4SOVCCw3Panxk74Dr62XihqpJt0vyxMg7f0Iws7ZHXtosuGrEXdUox0U3q/6uOteGRwQV RHawR2P8nEN2rhKsfitOdo1qUgw44EQtqwrIewlUjKomLFTv83JIH/bYKuIIGvNaGdUarO VrOleGDsGsNiiGzWhdDQmvHcW1JT4pk= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=cs.cmu.edu header.s=google-2021 header.b=fX9rfC6n; spf=pass (imf09.hostedemail.com: domain of kaiyang2@andrew.cmu.edu designates 209.85.167.172 as permitted sender) smtp.mailfrom=kaiyang2@andrew.cmu.edu; dmarc=pass (policy=none) header.from=cs.cmu.edu Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3dab336717fso5041864b6e.0 for ; Thu, 01 Aug 2024 16:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.cmu.edu; s=google-2021; t=1722554764; x=1723159564; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IfFTzO1DbkzzA6IG/pk4zpXy1DZbOX87HqqGBXzn01Q=; b=fX9rfC6nFqjckX4QDgAAtkVMCkEgRfdihDeC/tTHhYpM/lhjX9NBJP/xx3bBXukbAP Mz7bAMdrmGw9mzZPrz8CiS5CSUankCFl5NALyTz0JTsKfQmurjgdi4ChRN3FOhrG0ffI m9ZL5D3W3KAwZsJQu6jCxHFLTLMXtZE91vS+WibPhQ5jfukCGh9cYxWKy5xnd/8zXlY5 IaiBDOiGJjoeYYjN+cLlVThjXrmHtiD6wmhfj2bcWpuPoxAEbBj/xlcnpS2ORE9VhUvI rupbANegk8SC5+9m+QYGyTGSwr0vVxR1qwuGvikYMDwb57nzmuIHYY8Qq81VbGAAegcj 1aqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722554764; x=1723159564; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IfFTzO1DbkzzA6IG/pk4zpXy1DZbOX87HqqGBXzn01Q=; b=f2XMKZ37SiU/ikyDIh5/b8WGC3tiPxbdhTgb3TuUAlgqknH42k4AeXzG675093nbL7 1yqcmrVpttIvSEtqdzu7psvlH7i250xN4tfds7U6B8QQnqiXevnkAby7kBIlhXvKOcOH lBUgpYE2dvd/vyC/k/pEbSLxKOGC1o1u7HopgauLwUlqWzsH+235RUfW3t4cQU4KDfgH v0gC2SYlz7b9uMbfCBcXbQNxEhZvYam8H7COERls+Nqf9OokCACM1DTwSonTapqd3+0f kqijf9H54DQqQ4je2oi/Vpgtlpjq3P9v4mNG64QlYVLR9pc+W7fHn2iDTNO7o7Br3EJe 2h9g== X-Gm-Message-State: AOJu0YyMTAF5dTKRTkbsmcOd2nAwrr/7JWP/VRjdjd7+qhuuAzTlvF7W 7Pan1PocHLg6XDPxOMHuoUmJbSgUOEX7dkI1lzYijHw87ONQZocMJOQ/wgObltTd2psofxPURZ4 XfR6k7NAU+hOBCuIWAWYw7edkMpWvtP4x+iQ4Lr7pziVNgNHJRB1QSesjgsgbt2tzqA9sFCcTrj j7t3NXer9mmsCKU20Qj2R76vcqTvpb06kh X-Google-Smtp-Source: AGHT+IHa3tLsviqEbUvdgifqWwFKaKSCWACaLa5gDY+MCwZJ95XhOlTus8mFRd+E9YxbBzP2U5sOOA== X-Received: by 2002:a05:6808:18a5:b0:3da:b36c:c702 with SMTP id 5614622812f47-3db5583b1f1mr2264414b6e.46.1722554763764; Thu, 01 Aug 2024 16:26:03 -0700 (PDT) Received: from localhost (pool-74-98-231-160.pitbpa.fios.verizon.net. [74.98.231.160]) by smtp.gmail.com with UTF8SMTPSA id d75a77b69052e-4518a6adb2dsm2992491cf.18.2024.08.01.16.26.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Aug 2024 16:26:03 -0700 (PDT) From: kaiyang2@cs.cmu.edu To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, Kaiyang Zhao Subject: [PATCH v2 0/2] mm: print the promo watermark in zoneinfo Date: Thu, 1 Aug 2024 23:25:46 +0000 Message-ID: <20240801232548.36604-1-kaiyang2@cs.cmu.edu> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: F2A8C14000B X-Stat-Signature: n4brsq65i8fyhri81w67z6hpf4qfwy9u X-HE-Tag: 1722554764-584694 X-HE-Meta: U2FsdGVkX1+n9sH8Ow5sUgHXRNo+ZRCzEBIkuTJ1qrprfagCKVe/SQzKB2GYCHBFDbhrmCGuyeXaa9PbOlg4ZHLz3x4sGDILA/Kc8dXPBY6mQHgyfXFyn3spW8YJ/TCyQLkkVMJST6iReApRnguC2ElbHO10J1ZTRe1+CTeGvtBNLBqncvkKKaG1Q/TcLV8Auz7NjtIalNkwFyJ1b+GFPbCDoSfwdtXvg0Oc8eqhVWObgYK/c+gQt/tBqpJxupyRCsNsUhEhgitAQ6FH7xBLJHyEFwhkFcFLSsLRvEdBoNQnilzayvvxpqYJUiXobOD9X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owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Kaiyang Zhao V1 -> V2: Added promo_wmark_pages and converted existing call sites as suggested. Kaiyang Zhao (2): mm: create promo_wmark_pages and clean up open-coded sites mm: print the promo watermark in zoneinfo include/linux/mmzone.h | 1 + kernel/sched/fair.c | 2 +- mm/vmscan.c | 2 +- mm/vmstat.c | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-)