From patchwork Fri Mar 11 14:15:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bang Li X-Patchwork-Id: 12778096 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 D3485C433EF for ; Fri, 11 Mar 2022 14:15:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E11148D0002; Fri, 11 Mar 2022 09:15:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DC0668D0001; Fri, 11 Mar 2022 09:15:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C61FE8D0002; Fri, 11 Mar 2022 09:15:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id B383B8D0001 for ; Fri, 11 Mar 2022 09:15:31 -0500 (EST) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 778A7120F42 for ; Fri, 11 Mar 2022 14:15:31 +0000 (UTC) X-FDA: 79232303262.14.B0B1432 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by imf16.hostedemail.com (Postfix) with ESMTP id B8EE818001D for ; Fri, 11 Mar 2022 14:15:30 +0000 (UTC) Received: by mail-pj1-f52.google.com with SMTP id z12-20020a17090ad78c00b001bf022b69d6so8272380pju.2 for ; Fri, 11 Mar 2022 06:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XZJctosDLei9tHFcPaHwOIETymJfkLOU84IX8rfwoMA=; b=mlneQKeHJ/qSdm+TB7TDo/UG6ZhvlDTwVeHAuWr/hFTgu67cXJeHmVwQbJvWeP9VmV 79UrIYA6aZCl1jvyMjTLoeztHo/3zJkp8vvtLoZ2UZzLj17yVb6549Zf/dj2eJ/67ZZr AEXyLwphI7tv0irobgWo1chw3ftIJrrayx24R3abyLF0EA7ryyorHfshGCGs3kfKNfD+ TkIFN4iHUcE7uiSXTS/dlTG5asehAtA9t/Z8iNckuS8yzESRghBxZxHrIs/fnRkMDi/b TO3tBvagmQh+Rs/vsX9MDYm/Rx/KSVEMNV3bIBxKr9tYzJ9pJsVOPOoFP4JQnzSrxp9r +ilw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XZJctosDLei9tHFcPaHwOIETymJfkLOU84IX8rfwoMA=; b=zf101/vOq9ZNtce99UsQOlAmTXP8MSISu3nFdhgOThlTrCT++tl4NZNwdUZqM+NPpK EI9szHdgNK9KShaqw3xSMXjxZ1T9xXfepq676mhUz/2G9nn0DQYnmvFnxZEFGLF97AOu RVoRpQJqMbgf0o9JdLQMi1iPwvMAtqF546IVny4F6vOtnqpqTkFNghHo+ZeFQm6CNYRO INeA/vhc45OTd5UwKbwkM9Lymi8nqqqQYXaam2nHomHtGmGmLaMKD3KnRF10CopBwtpl oNLpVyqd//TcQT9EvsuJHJ9xw04oAe8/Hahi3PqZE58ST5LT+Bxdw1EOxCGk5pWHWHu/ 9Oqw== X-Gm-Message-State: AOAM530lJLmH+ICa/saA8nDPKwr48PwOW031vfpjTg2FhQGV6QMfQC9b r5EKLtAP2rNw4PCpAU97U+c= X-Google-Smtp-Source: ABdhPJzNXz6mffH6Eejx1Ocj6S+aaeYG+sSnd2LWtIQTiBQPjNe628xzHMHFb44//EEEGkMb7KdY/A== X-Received: by 2002:a17:902:bd95:b0:14f:40ab:270e with SMTP id q21-20020a170902bd9500b0014f40ab270emr10677648pls.101.1647008129627; Fri, 11 Mar 2022 06:15:29 -0800 (PST) Received: from localhost.localdomain ([119.3.102.56]) by smtp.gmail.com with ESMTPSA id o3-20020a639203000000b003810e49ff4fsm2224810pgd.1.2022.03.11.06.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 06:15:29 -0800 (PST) From: Bang Li To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Bang Li Subject: [PATCH] mm/swap: fix confusing comment in folio_mark_accessed Date: Fri, 11 Mar 2022 22:15:19 +0800 Message-Id: <20220311141519.59948-1-libang.linuxer@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Stat-Signature: bsx9sqag8qfzbyk5qohgmwkcehz76dd1 Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mlneQKeH; spf=pass (imf16.hostedemail.com: domain of libang.linuxer@gmail.com designates 209.85.216.52 as permitted sender) smtp.mailfrom=libang.linuxer@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: B8EE818001D X-HE-Tag: 1647008130-443933 X-Bogosity: Ham, tests=bogofilter, spamicity=0.108004, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: For unevictable pages, we don't need mark them. Signed-off-by: Bang Li --- mm/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swap.c b/mm/swap.c index 00804ea244e1..9d91ce23ea18 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -423,7 +423,7 @@ void folio_mark_accessed(struct folio *folio) /* * 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)) { /*