From patchwork Thu Mar 10 15:20:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charan Teja Kalla X-Patchwork-Id: 12776552 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 B3C20C433F5 for ; Thu, 10 Mar 2022 15:21:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3EF5E8D0002; Thu, 10 Mar 2022 10:21:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 39E998D0001; Thu, 10 Mar 2022 10:21:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2B52A8D0002; Thu, 10 Mar 2022 10:21:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 1DE058D0001 for ; Thu, 10 Mar 2022 10:21:22 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D09A2E4F for ; Thu, 10 Mar 2022 15:21:21 +0000 (UTC) X-FDA: 79228840362.09.730FCAF Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by imf10.hostedemail.com (Postfix) with ESMTP id 12EC4C0020 for ; Thu, 10 Mar 2022 15:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646925681; x=1678461681; h=from:to:cc:subject:date:message-id:mime-version; bh=OCkyn1d0jZJeCuLqpTCUe7k/tQ6fLAJyMA1OoSi4o6c=; b=dEvNpuWuz8ydWa3m20pHIJTmLGtFRcE1iAV/VkPXmBmr5ulMw8KzaVg+ 5P96RYtrNZVWV56oJU0YgEuLtOrkuzO7ouiwwASFvzQExA1+zAi7t7uh8 WElPyh3IVI+K64DDLRHUaIr85CnEffbDtItF15InErLWPynBY/02kOALt o=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 10 Mar 2022 07:21:20 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 07:21:19 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Thu, 10 Mar 2022 07:21:19 -0800 Received: from hu-charante-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Thu, 10 Mar 2022 07:21:16 -0800 From: Charan Teja Kalla To: , , CC: , , , Charan Teja Kalla Subject: [PATCH] mm: vmscan: fix documentation for page_check_references() Date: Thu, 10 Mar 2022 20:50:40 +0530 Message-ID: <1646925640-21324-1-git-send-email-quic_charante@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Rspamd-Queue-Id: 12EC4C0020 X-Stat-Signature: z1t1sw4nh7xqwmkuocjnjiuz1anook8m X-Rspam-User: Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcdkim header.b=dEvNpuWu; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf10.hostedemail.com: domain of quic_charante@quicinc.com designates 129.46.98.28 as permitted sender) smtp.mailfrom=quic_charante@quicinc.com X-Rspamd-Server: rspam03 X-HE-Tag: 1646925680-245538 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The commit b518154e59aa ("mm/vmscan: protect the workingset on anonymous LRU") requires to look twice for both mapped anon/file pages are used more than once to take the decission of reclaim or activation. Correct the documentation accordingly. Signed-off-by: Charan Teja Kalla --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 59b14e0..aab6f6e 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1398,7 +1398,7 @@ static enum page_references page_check_references(struct page *page, /* * All mapped pages start out with page table * references from the instantiating fault, so we need - * to look twice if a mapped file page is used more + * to look twice if a mapped file/anon page is used more * than once. * * Mark it and spare it for another trip around the