From patchwork Wed Feb 14 06:05:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinsey Ho X-Patchwork-Id: 20352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1014830dyb; Tue, 13 Feb 2024 22:07:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXwsIgcpO1q0Ez6RI5AWmMkZjxJHb5kD2S8MkhEfliZiHet7Iel2iFfPeCnctWtwoerdNJ6j6arI53LvwSITjvDT6Z7Ow== X-Google-Smtp-Source: AGHT+IHJtpkdInWvoXttprjXyiTeqGTdl2yUL31UbqnDuckS0cmmRO7VXPHQ1rbW98K7JTNpy47H X-Received: by 2002:aa7:d9c3:0:b0:561:42e5:3a94 with SMTP id v3-20020aa7d9c3000000b0056142e53a94mr1238779eds.37.1707890845471; Tue, 13 Feb 2024 22:07:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707890845; cv=pass; d=google.com; s=arc-20160816; b=hh62lVLsw5HrBkuU9a2C5CPRQIrMDlo6WteWoErrt1vEmRmRPZbOGyZqGEtTlEi0Y7 QOn6iR3BCqP57ajd9+jwgXfeSKjfmEKtfcFmYWVlJLxzSLIfgR82LaRrLblkSsdIRCUI 56oFM5sqaBet4EhuKfB0sia3l9sAR5JpC7Vh0gtwZxpKipNBHGjGE7kR2XN9A30ViT5U p51o97m2BwlxeZ2m1NdkeYfLDJAVEpHLrfve23q2c88v2WpiKtRAhvF3B8+0FH+nidDF W0ite8aLt8tCbymaFD34teb43AQPJhpE8EE0KMlr4r7PaotKbR7oRRhqijSiy0v10oBb UPdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=tO+j6VP5gx0nxk/midcgHLSWwgpuiscaWbOyhmHxPio=; fh=FIRYNllLHEUIraxvfl8A98gBtOn+BSvwtXpSLZnQNv8=; b=BBswt9DyaWjgvtKFxP6/yHxKxKYPC+RqcJB1T0miK/s8T5AU+Xg1cZrV/kZJ4kiHuT KGdCY1UUCmVr5fKR2sMVmvjJSoYMhUGOpooKCsaT36RySA0yzSeWv2rwsjHhwGhfqSLy a8wbqtmkYnZdKPhB5BtOpBvXBOSy8UcC041KYkqjhs8PBH+Tcer5d4gjPtUVDsOXhZOz pWWJgksAnHLLpT4OeXu83HjTH4Iv4gzJRhvfyp/jf7GT6JGUZfa/LpmKzLqcpoWhxZAh EOBeVsQKvd14/bf6VdG+4W43P9CmCOIRJII8mK97/spydHhiLCR+ac3MyUChiPeGCjGp 0FhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=UURaazVn; arc=pass (i=1 spf=pass spfdomain=flex--kinseyho.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-64766-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64766-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCWv3yFmtrGFRity4Gx9A5toHIeC3Xhummr6SUZ/+EDPLwLNvkh/vXju5+s0vaG7dGPq/NbhlVZTFBwfWBUujvAMG+xf2w== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b16-20020a056402351000b00560c1cc0c71si4744070edd.678.2024.02.13.22.07.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:07:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64766-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=UURaazVn; arc=pass (i=1 spf=pass spfdomain=flex--kinseyho.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-64766-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64766-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 481241F2816D for ; Wed, 14 Feb 2024 06:06:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A55801170E; Wed, 14 Feb 2024 06:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="UURaazVn" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CE0711183 for ; Wed, 14 Feb 2024 06:05:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707890760; cv=none; b=ifwPPZx9BysdhbvE0Eh9ltawvyuDqjo9m076ozcLNsebaqqWK+l/5+wswhVf+4rzp4yQTIfdac39IHc+HSMQ2yH7/BwBdisCSzZoCINabU7h/4SibFtxaFXQBfHKrWTVui2L3IiYVd4MU5MuIoSJObKfdevUQAPJpN+GKsRt3I8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707890760; c=relaxed/simple; bh=4tibeQEGw8nZW9VjvipN0HrxQMZ117NBTnKNMUrDr1M=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=e7uoI4K7iohqpK3VMg21pFoUf/Os0fGcgBOuYIvJO6Fjo9Hl8qT3veFSf/Jwn0lozdgHROqtN9lHgYg5E0AEeMOW47aP+bOT8LYZdn3QOrN5KDTXHwNx02BLPiKY4nJua1qat65zLvSsKoPByDP0Y1kGr0PyXl7jWFh8IhmXeL4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--kinseyho.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=UURaazVn; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--kinseyho.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dbf216080f5so8176792276.1 for ; Tue, 13 Feb 2024 22:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707890757; x=1708495557; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=tO+j6VP5gx0nxk/midcgHLSWwgpuiscaWbOyhmHxPio=; b=UURaazVnXkjyoXk+SaiJJBwgWKEGEz39bDSZpz3NsBn5C1LPpdDTjgblEfloKDoEXS HwNnsdSdJCEA65A0H5yyRTU5abn6OLP939gbgQtmKLt+r96vga0J5aWVdKbrG4DuWJx3 HKKBKL1EMj8if9UStaVo47qi6zMeawkSuKjzJu/D/TBS1d44ZXl/F3E0ZGWJiCXkJATK ueM6w4fNvKsasNpjEiZ1lCvtwf5N9CexHzB9/6BuKClITuPxhBU7aoqhAPqc12KMFc8f uJnBSC7+7wXy1XSz6dNQFNQCTWM7EzXXfNw8JV3rZ9CHU/HpSC7kbx8wkoW0q3s3Zoj2 ierA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707890757; x=1708495557; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tO+j6VP5gx0nxk/midcgHLSWwgpuiscaWbOyhmHxPio=; b=SNADoE2nDXm3Mz6xA2rW0trTAP6+55YyAMukV0ip+JXLtW3IsDpCxqjrMa2ToZyFHk rkJaz3wSMz7t/chcn11LuoRZVm25LzeQnT3oHptJ/ThPd/g0fB0Tb5f0CDJp4HqHq8x/ tMNbHogffSsWC6/xt3KfuNFqhPqZZ1uqJg4ctexYB40ctTyQkzESSL5EWebKvNwqcizb BmYkebmkIdACUiW9yuFaqamjkebixFIZ+Q8d4gqQbnfim2eqVzztXpfsHobax0rNfGX/ kzQTBAakGX5YYKymZinY/MqXO3FKPFKcYHCjVeY3/skp+8pyDs37dIhMPFe6GDRv8Vvg P8AQ== X-Forwarded-Encrypted: i=1; AJvYcCVNC+rbQgxO2LvlHkDJ2/P9vJeLWVp6GbFSO56XEb3QGTfnAkM4eqPmyX4IUGOurq7eXlvMt2HfpWLXmvGGDzZrYkGzVKiCZ8LVF6Z2 X-Gm-Message-State: AOJu0YxNZJ+3okvj4bCrVhm981M6U1RHy3v+62/iPbLy3OYaHhhBkMVm NKE8UDs5AgoKqoK07WxWVIKK5HvpK3gkOr1cp7qyQJqxALcYjHCGgmxLZS/7vcS57N8/HMcWCl4 iWnatlaNfXA== X-Received: from kinseyct.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:46b]) (user=kinseyho job=sendgmr) by 2002:a05:6902:114d:b0:dc6:d2c8:6e50 with SMTP id p13-20020a056902114d00b00dc6d2c86e50mr318495ybu.7.1707890757468; Tue, 13 Feb 2024 22:05:57 -0800 (PST) Date: Wed, 14 Feb 2024 06:05:33 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Message-ID: <20240214060538.3524462-1-kinseyho@google.com> Subject: [PATCH mm-unstable v1 0/5] mm/mglru: code cleanup and From: Kinsey Ho To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yu Zhao , Donet Tom , "Aneesh Kumar K . V" , Kinsey Ho X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790853351218520356 X-GMAIL-MSGID: 1790853351218520356 This series is a follow up to the comment: https://lore.kernel.org/7baea98a-90ff-4c2d-9d00-d3ddc715c235@linux.vnet.ibm.com/ This provides MGLRU code cleanup and refactoring for better readability. Kinsey Ho (5): mm/mglru: drop unused parameter mm/mglru: improve should_run_aging() mm/mglru: improve reset_mm_stats() mm/mglru: improve struct lru_gen_mm_walk mm/mglru: improve swappiness handling include/linux/mmzone.h | 6 +- mm/vmscan.c | 142 ++++++++++++++++++++--------------------- 2 files changed, 74 insertions(+), 74 deletions(-)