From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-190.mta1.migadu.com [95.215.58.190]) (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 9C8BB2DF719 for ; Fri, 21 Aug 2026 06:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787294478; cv=none; b=ZIze8qAWVBvpzu/nToOcLK42LIEnqdOF90Jcba5/ZGRv8PcybmOlOZtmrfIY/TkEBhGfaTsCUQyxxcMjTZzNji2vatmghWcya7NS+HrUyGCK2t9pqxX2ehZ4Ts7Ny+KaBqxnuaduiF7FqtYvkIx3l3kD5JnNPiRjiZ5aL0AMhP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787294478; c=relaxed/simple; bh=6KGQRjY1sVeRKd6gftJizGDGbmdsHlLRR9CVuOhEP0U=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=keNThV20R8cyhhNF2G0fdt/VDI71ij9WltuN3IMcx8jvcWHc9Yn55ERPVPl+J4aEtA2B1juh+SJo+YTCg1yDKwfWg3iH3GqSstGr333930AY2tj14ZHwLj/2SXRcVHGKQt+74af/zUabKuDcKKBJuYVd3vkEstO+sL5gzk3pYVU= 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=erA3EBmz; arc=none smtp.client-ip=95.215.58.190 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="erA3EBmz" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=6KGQRjY1sVeRKd6gftJizGDGbmdsHlLRR9CVuOhEP0U=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787294473; v=1; x=1787899273; b=erA3EBmzkORpxx/RqIQsKH/u+7Ooe29W+Nm4jg0lBh2mO76TrE5Df91dwXzf8n+MCOJXArv8 cmb2GIEMrK5O7ASgB/1oaHam/ArLWjkf9H10cTqmAP2kaEv+ZabZSsl4vb3RSf1XFrqsTqSBjcF sjOOqAg9frXbaFaekDoUMg+8= 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 e84666c61e62ed05; Fri, 21 Aug 2026 06:41:12 +0000 X-Mizu-Trace-ID: e84666c61e62ed05 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 v2] mm/vmscan: fix comment logic in balance_pgdat Date: Fri, 21 Aug 2026 14:40:57 +0800 Message-Id: <20260821064057.4081-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..8c4766b4c29c 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 now be * able to safely make forward progress. Wake them */ if (waitqueue_active(&pgdat->pfmemalloc_wait) && -- 2.39.5