Message ID | 20220918204755.3135720-2-yuzhao@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 ED568C6FA82 for <linux-mm@archiver.kernel.org>; Sun, 18 Sep 2022 20:48:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4BDF56B0074; Sun, 18 Sep 2022 16:48:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 46CB3940008; Sun, 18 Sep 2022 16:48:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 30D8E6B0078; Sun, 18 Sep 2022 16:48:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 247306B0074 for <linux-mm@kvack.org>; Sun, 18 Sep 2022 16:48:02 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id E2728AB47F for <linux-mm@kvack.org>; Sun, 18 Sep 2022 20:48:01 +0000 (UTC) X-FDA: 79926393162.12.4CAD2B3 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf19.hostedemail.com (Postfix) with ESMTP id 948191A000A for <linux-mm@kvack.org>; Sun, 18 Sep 2022 20:48:01 +0000 (UTC) Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-349eecb5106so87472237b3.19 for <linux-mm@kvack.org>; Sun, 18 Sep 2022 13:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc:subject:date; bh=j+OKHvKHG3fiMZDwJa80B6CugUV7TkNbiQbcStsRR/A=; b=hRuwBHeOlq07Z7oeNy0aK0jN/+XxMPz+xmH9wlezJnHOu18HbCg5bLy+gNTHzGzi4D 2yRbVUYAscIUe4jz1RMvL+CChY99mu55goMsLgfCC+GIfq7p2fCasGRSdtHt3WjjSnum DFe3Mb7I/YR0MDUWFG1Jo/oSE8B4oJXBLmhn8fyifBOZRtZ6db4ingqmvI6zdtxxSX4O Kg5Zv9TTkJPwLp/pqWZF32gKX1L6DBS3LDvr/taGLv8Rc+TUzopIpAeW6tQV/tG6NIMj tExAj35S6+fhL4VMP3kANHngr7oA+0/wKPCggtt5gMMZoiKWeodUgUU5DIWIYrIBuZ26 6HNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date; bh=j+OKHvKHG3fiMZDwJa80B6CugUV7TkNbiQbcStsRR/A=; b=w8ydKOz1BqYEvaLvLY0dWsRekqQITqrdYEle6/w/TOsUFwkeOT/SvqPayzYOButZYv FNRy4bd/hy3hBSffj0NArME7lpzUVyHlgyF4s3+sjOt3d1QS7EyVOmh3HdqWhpN/a5Sr 5TEdFUnA6aOvuqhQ9AW1BtuvfZqjLMeUzDR+wbN7F2FrtAA5yM3KCoCuGsTdeSW2E9Gf nuLgvpNV7ZefkRSyfsk3SJN8i38dibr4xg3extQba4LxsBAJJ4GU/v1Y3s7nBvJEdbx/ 7irlTMVv6aWRoJjOKQHAFpDeehcVreDvDcJz6prDlPZfR442TbRk23Bkrrg0rIORnzld dEBA== X-Gm-Message-State: ACrzQf2/sOsZt4gnoQkjr4dRADdxZaX0TCSegjHdAUL/BqkGHNXy+6nA o4v0/HXoFmUI51cYkFy0IlSAP93nc/Q= X-Google-Smtp-Source: AMsMyM538fxHaYlPJHI/OX6nai3ZPu7HSzj3U6KyRuCVm6+qJcbD2kyMoOeRVxU6InrzDbY4CJ76kInB16Y= X-Received: from yuzhao.bld.corp.google.com ([2620:15c:183:200:ccff:7b62:4ed6:2946]) (user=yuzhao job=sendgmr) by 2002:a0d:eb8b:0:b0:349:f236:cdd4 with SMTP id u133-20020a0deb8b000000b00349f236cdd4mr12550792ywe.198.1663534080921; Sun, 18 Sep 2022 13:48:00 -0700 (PDT) Date: Sun, 18 Sep 2022 14:47:46 -0600 In-Reply-To: <20220918204755.3135720-1-yuzhao@google.com> Message-Id: <20220918204755.3135720-2-yuzhao@google.com> Mime-Version: 1.0 References: <CAOUHufZzDCezgeeAj6M3WqOQKJYxQ_4jNCD8itU0+J6JE_fV4g@mail.gmail.com> <20220918204755.3135720-1-yuzhao@google.com> X-Mailer: git-send-email 2.37.3.968.ga6b4b080e4-goog Subject: [PATCH v14-fix 02/11] mm: multi-gen LRU: add comment in lru_gen_use_mm() From: Yu Zhao <yuzhao@google.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm@kvack.org, Yu Zhao <yuzhao@google.com> Content-Type: text/plain; charset="UTF-8" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663534081; a=rsa-sha256; cv=none; b=Ylbk+F65MGGaGMpfFAn9dujhR5Owea12q4dCw0nQBW2Z03ASOboHaEfULckqrdpcpzyGyt /T2bJVBwpqonRqDKu+mmP4eI/uVpCHuWx19dJfQjwjGW07VcGjDz7wPL06/kc0Avs/v4Rp pSNC3bUdhlmuCPMSzwa8C69R9U+eD3Q= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=hRuwBHeO; spf=pass (imf19.hostedemail.com: domain of 3AIQnYwYKCMU95Aslzrzzrwp.nzxwty58-xxv6lnv.z2r@flex--yuzhao.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3AIQnYwYKCMU95Aslzrzzrwp.nzxwty58-xxv6lnv.z2r@flex--yuzhao.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663534081; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=j+OKHvKHG3fiMZDwJa80B6CugUV7TkNbiQbcStsRR/A=; b=iz8lyLZ1M86hVi0KhUuN7l15U8Z2/06ljwHi1kmyo8M5CmAhSGKgwxWR8cf6cxpqTlVAt3 DWIjyHWzg4t+hHcrzfvVKGUhXVYwf78A5n+wTkfeVYyzcUfW928ZKzW5jSQGHmlLUs5BLj 159Vs5EdUIG3BXE50WeaOFm+2oTmiUI= Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=hRuwBHeO; spf=pass (imf19.hostedemail.com: domain of 3AIQnYwYKCMU95Aslzrzzrwp.nzxwty58-xxv6lnv.z2r@flex--yuzhao.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3AIQnYwYKCMU95Aslzrzzrwp.nzxwty58-xxv6lnv.z2r@flex--yuzhao.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Stat-Signature: 97xsre9fahg8fdcxhpithjaukp1s9ptk X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 948191A000A X-HE-Tag: 1663534081-25519 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: <linux-mm.kvack.org> |
Series |
[v14-fix,01/11] mm: multi-gen LRU: update admin guide
|
expand
|
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 882c31e03cca..500e536796ca 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -18,7 +18,6 @@ #include <linux/page-flags-layout.h> #include <linux/workqueue.h> #include <linux/seqlock.h> -#include <linux/mmdebug.h> #include <asm/mmu.h> @@ -770,6 +769,11 @@ static inline void lru_gen_init_mm(struct mm_struct *mm) static inline void lru_gen_use_mm(struct mm_struct *mm) { + /* + * When the bitmap is set, page reclaim knows this mm_struct has been + * used since the last time it cleared the bitmap. So it might be worth + * walking the page tables of this mm_struct to clear the accessed bit. + */ WRITE_ONCE(mm->lru_gen.bitmap, -1); }
Link: https://lore.kernel.org/r/CAOUHufY91Eju-g1+xbUsGkGZ-cwBm78v+S_Air7Cp8mAnYJVYA@mail.gmail.com/ Suggested-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Yu Zhao <yuzhao@google.com> --- include/linux/mm_types.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)