From patchwork Tue Jun 25 12:15:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "yongfa.hu" X-Patchwork-Id: 13710985 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 EC173C30653 for ; Tue, 25 Jun 2024 12:16:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 59D2E6B02F5; Tue, 25 Jun 2024 08:16:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 54D9E6B02F9; Tue, 25 Jun 2024 08:16:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 43C176B02FB; Tue, 25 Jun 2024 08:16:10 -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 2C1C46B02F5 for ; Tue, 25 Jun 2024 08:16:10 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id BCEF04189E for ; Tue, 25 Jun 2024 12:16:09 +0000 (UTC) X-FDA: 82269308058.21.798F6DB Received: from m15.mail.163.com (m15.mail.163.com [45.254.50.219]) by imf27.hostedemail.com (Postfix) with ESMTP id C6AE54000F for ; Tue, 25 Jun 2024 12:16:06 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=163.com header.s=s110527 header.b=cussvILI; spf=pass (imf27.hostedemail.com: domain of hushange@163.com designates 45.254.50.219 as permitted sender) smtp.mailfrom=hushange@163.com; dmarc=pass (policy=none) header.from=163.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719317757; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=dtFb+RElWjmSMz3lQ9EUTC4/2x3gzy4Tx1TLPXdoBk0=; b=mFvUhvhEHr3eFDXdDn6HFqgPBk9SoKfVK7VSt114av/nqkZHhv11MCtq/SytTDxNi6lRa3 QWxXIvU3pw1mnaYvkzvrMi1JA3kASl8Wl5V9IP/E5cJcr1dVGROe/65zILH9mWAztGnQlh WqvbDFAQhGdAiCjlxKW4dWaOPMyS0RU= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=163.com header.s=s110527 header.b=cussvILI; spf=pass (imf27.hostedemail.com: domain of hushange@163.com designates 45.254.50.219 as permitted sender) smtp.mailfrom=hushange@163.com; dmarc=pass (policy=none) header.from=163.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719317757; a=rsa-sha256; cv=none; b=B4m8iBeyn6Bd+1EyjBERWSoQ1kPoUyeqc/PpPKdQD8XHwNuBkqNIhCJnYV+rOHaCEJd7hh 7QpmTLDSK/mlynMNDbhhPqFzlz6UO4+dI70aF19X9336eXmEJVHCNVFkdlDyodusVIHzWl olyzwEz9YLlH7xrDdcCs9Pqw24Fz3q8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=dtFb+RElWjmSMz3lQ9 EUTC4/2x3gzy4Tx1TLPXdoBk0=; b=cussvILIDI/hq+oIHS8Mu3/9+n+QE4mgsm DcLuCukv5pRHqMo75VA1p6EWPyHlADm6LKcNgj2RzpF1mFzZtNxOkpKr9yL0W+y0 GkhVccjnu5iSS7uysI9k7c+G3T3jI27eYBT2SfxwmVJrNGD6LnirTt87g6v9SM7l u2cgX+CKI= Received: from localhost.localdomain (unknown [120.229.10.157]) by gzga-smtp-mta-g0-4 (Coremail) with SMTP id _____wC3H3T9tHpmFDe5AQ--.6623S2; Tue, 25 Jun 2024 20:15:58 +0800 (CST) From: "yongfa.hu" To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, hushange@163.com Subject: [PATCH] mm: remove partial comments of kswapd_shrink_node head Date: Tue, 25 Jun 2024 20:15:47 +0800 Message-Id: <20240625121547.23613-1-hushange@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: _____wC3H3T9tHpmFDe5AQ--.6623S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw4kKF4kWr17Zw17ZF43ZFb_yoWftrcE93 W0krn7tryUJF97tFW3CF4rXFW3Ga4kZFyjyr1F9FW7tFyUCr43Wrn7KryxZry7Xa17CF9x KFZrZrWfK34UujkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sR_dgA5UUUUU== X-Originating-IP: [120.229.10.157] X-CM-SenderInfo: xkxvxtxqjhqiywtou0bp/1tbiYAMJnmV4Ha0KwwAAsQ X-Stat-Signature: wbffigih4mdpcerwwosenbjoxi3kzc15 X-Rspam-User: X-Rspamd-Queue-Id: C6AE54000F X-Rspamd-Server: rspam02 X-HE-Tag: 1719317766-806160 X-HE-Meta: U2FsdGVkX1/xVOYJ1pUYfQnacwdkR/QedoN7uzjdu8BrOE9uk/n6hGICFq4je95/txg0XOpciOhtzdI8dpiEsVl2KkVcf73GgmaBO66Hcr50rcehgP9I6IELy6d1qTARkivgfCtFNMvMT5Mp2Z/H7ElrCeyFSM6tUTKHhR4Rp0LzptNuZ0dUGdNxlKbcoD4FMhLEWKzj/6DMSV2+QsJmEdea9Az8L6fESv711I1rqa2lxRhvf6PZYHvBQkEu/FNZ2bN4NmZE13J9T/nYx/j1HKZ+5jLs18q+kkwelqqZYy9jOXrJiawi1yNBhT4ckDgwVDMUcniJY9cMkb5qyC9LOUgcbftG/hkgtQfh9HMYaeMQT55oVR/QvtUUNGNGRokjvy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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: List-Subscribe: List-Unsubscribe: when function kswapd_shrink_node return, it will not check the condition mentioned in the removed comments: "if the lack of progress was due to pages under writeback", so remove it. Signed-off-by: yongfa.hu --- mm/vmscan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 900bad16e..a2369a3b1 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -6747,8 +6747,7 @@ static bool prepare_kswapd_sleep(pg_data_t *pgdat, int order, * zone that is currently unbalanced. * * Returns true if kswapd scanned at least the requested number of pages to - * reclaim or if the lack of progress was due to pages under writeback. - * This is used to determine if the scanning priority needs to be raised. + * reclaim. This is used to determine if the scanning priority needs to be raised. */ static bool kswapd_shrink_node(pg_data_t *pgdat, struct scan_control *sc)