From patchwork Tue Mar 22 21:39:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12789068 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 11EAFC433FE for ; Tue, 22 Mar 2022 21:39:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8E9EB6B0098; Tue, 22 Mar 2022 17:39:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 86FC56B0099; Tue, 22 Mar 2022 17:39:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 739A66B009A; Tue, 22 Mar 2022 17:39:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0223.hostedemail.com [216.40.44.223]) by kanga.kvack.org (Postfix) with ESMTP id 5FAFE6B0098 for ; Tue, 22 Mar 2022 17:39:55 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 2A287181D75CA for ; Tue, 22 Mar 2022 21:39:55 +0000 (UTC) X-FDA: 79273339950.16.7C2FA42 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf31.hostedemail.com (Postfix) with ESMTP id D2EF620002 for ; Tue, 22 Mar 2022 21:39:54 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3B49860A14; Tue, 22 Mar 2022 21:39:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DE1AC340EE; Tue, 22 Mar 2022 21:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1647985193; bh=8VA4dRateZukIxcuU24dYBOu+ngWksQajNF7aIpezC4=; h=Date:To:From:In-Reply-To:Subject:From; b=J8wiKzZ+B9gGFOqH3UcgpGnjCYk1SLA7vLgYLhLLI5C/49Uyu+gJt5MDu547i2x5x Hl9oFk9678TZXubc2BxJclUZS7g4K2YtSv0a13w4ip1CnNlPRK4MhB39/TE9A1IDcI 2cCQSP8ijvJlEVF+c1rFypSKc9QIV5tGv0YQPS5Q= Date: Tue, 22 Mar 2022 14:39:52 -0700 To: libang.linuxer@gmail.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20220322143803.04a5e59a07e48284f196a2f9@linux-foundation.org> Subject: [patch 027/227] mm/swap: fix confusing comment in folio_mark_accessed Message-Id: <20220322213953.8DE1AC340EE@smtp.kernel.org> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: D2EF620002 X-Rspam-User: Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=J8wiKzZ+; dmarc=none; spf=pass (imf31.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Stat-Signature: 8dpkwsnczxw36nm4kz99imqmcp7ypo4f X-HE-Tag: 1647985194-512131 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: From: Bang Li Subject: mm/swap: fix confusing comment in folio_mark_accessed For unevictable pages, we don't need mark them. Link: https://lkml.kernel.org/r/20220311141519.59948-1-libang.linuxer@gmail.com Signed-off-by: Bang Li Signed-off-by: Andrew Morton --- mm/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/swap.c~mm-swap-fix-confusing-comment-in-folio_mark_accessed +++ a/mm/swap.c @@ -425,7 +425,7 @@ void folio_mark_accessed(struct folio *f /* * Unevictable pages are on the "LRU_UNEVICTABLE" list. But, * this list is never rotated or maintained, so marking an - * evictable page accessed has no effect. + * unevictable page accessed has no effect. */ } else if (!folio_test_active(folio)) { /*