From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-142.mta0.migadu.com [91.218.175.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C91401AF0BB for ; Fri, 21 Aug 2026 00:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787273498; cv=none; b=fR4Dr/BcuFQwEb81nub27qkyd3BbnkjYp//GbQjo29+uiCVfsFq1StQx5Odt/nHZgCIvc7GGGaT37N+4Ze3JX31ilKNXL5qf70/BpTjeHce80PU3ksq01cwt4yT/pMn4ePJFV5foGcUC1zhOehNKK4ROtm6I3ZYBR4p7hRswgVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787273498; c=relaxed/simple; bh=v5sr0a368wMr49xT+OFIPBbKrTHL7LftGS48PMffOgQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=U0M8htDHxgB5iO2sOMwE370RT0nQKbVDizv32edY8pCM+ytGhVFYIAsEWOWMgZ1VlRrMKnphoIryR7GQYhXum5iuWLAw+3+8ux5gySkLXiNvh8Fx5DN2vdKW6yNhMfDirbCoAy0lMX25Ha8fHyjiqClVrjicjvMcOncjGKyahFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=KOPEn+s7; arc=none smtp.client-ip=91.218.175.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="KOPEn+s7" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=v5sr0a368wMr49xT+OFIPBbKrTHL7LftGS48PMffOgQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787273492; v=1; x=1787878292; b=KOPEn+s7M6mIEvVRejZtMv4HJAW1pKLcVQ+92ghO0E/ltlLRmpr77ELQavZenmibnxtLN5jW nAYYhGSKaDg2QH2ffyjWsxFEInaAjmN0Vxdv6AsxRdTZ8UEFXxwPw5AuPsAEp/OzUE8XJiN0jqg UQrG45/Uox+xPn/1QSb+X/HQ= X-Envelope-To: linux-kernel@vger.kernel.org Received: from localhost.localdomain (2408:8411:24a0:401:66b7:563b:1733:817d) by mta10.migadu.com with ESMTPS id cac206903308ca7c; Fri, 21 Aug 2026 00:51:22 +0000 X-Mizu-Trace-ID: cac206903308ca7c X-Migadu-Flow: FLOW_OUT From: Enlin Mu To: akpm@linux-foundation.org, kasong@tencent.com, qi.zheng@linux.dev, shakeel.butt@linux.dev, baohua@kernel.org, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, hannes@cmpxchg.org, david@kernel.org, mhocko@kernel.org, ljs@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, enlin.mu@unisoc.com, enlin.mu@linux.dev Subject: [PATCH] mm/vmscan: fix comment logic in balance_pgdat Date: Fri, 21 Aug 2026 08:51:07 +0800 Message-Id: <20260821005107.3416-1-enlin.mu@linux.dev> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In balance_pgdat(), when the low watermark is met, processes sleeping on pfmemalloc_wait are woken up because they are able to safely make forward progress. However, the comment incorrectly states "they should not be able", which contradicts the actual code behavior. Fix this typo to accurately reflect the logic. No functional changes are introduced. Signed-off-by: Enlin Mu Signed-off-by: Enlin Mu --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 35c3bb15ae96..822f73758c42 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -7188,7 +7188,7 @@ static int balance_pgdat(pg_data_t *pgdat, int order, int highest_zoneidx) /* * If the low watermark is met there is no need for processes - * to be throttled on pfmemalloc_wait as they should not be + * to be throttled on pfmemalloc_wait as they should be * able to safely make forward progress. Wake them */ if (waitqueue_active(&pgdat->pfmemalloc_wait) && -- 2.39.5