From patchwork Tue Mar 22 21:45:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12789229 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 E2BA0C433EF for ; Tue, 22 Mar 2022 21:45:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7CF846B0146; Tue, 22 Mar 2022 17:45:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 77EE96B0147; Tue, 22 Mar 2022 17:45:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 66E076B0148; Tue, 22 Mar 2022 17:45:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0049.hostedemail.com [216.40.44.49]) by kanga.kvack.org (Postfix) with ESMTP id 551B46B0146 for ; Tue, 22 Mar 2022 17:45:57 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 1B670A4DCE for ; Tue, 22 Mar 2022 21:45:57 +0000 (UTC) X-FDA: 79273355154.29.349FDA6 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf27.hostedemail.com (Postfix) with ESMTP id 7C2DE4003A for ; Tue, 22 Mar 2022 21:45:56 +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 ams.source.kernel.org (Postfix) with ESMTPS id 6110AB81DAF; Tue, 22 Mar 2022 21:45:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08273C340EC; Tue, 22 Mar 2022 21:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1647985554; bh=rkVyZCLtKId1gqM4EKvVgPOCeh/3NOaqkpucbTzplJU=; h=Date:To:From:In-Reply-To:Subject:From; b=pR2xMY8NY5adcB2gvwwTAHHq0TKoaWsUe6151vAC62IoBZMrlAfjhkg6UKmE4uufO s3miP1zLFP73kMYmLrUcJb9qaOAsnDjBfYZ1m/thBtzeAW02k1ZyuoZvRP+MzpuIGY kI4So82P/ZAugJuzFNjW2kuW6ZwTw22/FptLHeKo= Date: Tue, 22 Mar 2022 14:45:53 -0700 To: vbabka@suse.cz,mhocko@suse.com,iamjoonsoo.kim@lge.com,hannes@cmpxchg.org,quic_charante@quicinc.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 145/227] mm: vmscan: fix documentation for page_check_references() Message-Id: <20220322214554.08273C340EC@smtp.kernel.org> X-Stat-Signature: exqizrggmwbr4kmz59n4yan111cegdf6 Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=pR2xMY8N; spf=pass (imf27.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 7C2DE4003A X-HE-Tag: 1647985556-225584 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: Charan Teja Kalla Subject: mm: vmscan: fix documentation for page_check_references() 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. Link: https://lkml.kernel.org/r/1646925640-21324-1-git-send-email-quic_charante@quicinc.com Signed-off-by: Charan Teja Kalla Cc: Joonsoo Kim Cc: Michal Hocko Cc: Johannes Weiner Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/vmscan.c~mm-vmscan-fix-documentation-for-page_check_references +++ a/mm/vmscan.c @@ -1385,7 +1385,7 @@ static enum page_references page_check_r /* * 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