Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp578997rdb; Thu, 21 Dec 2023 20:39:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPhWvMA3nFl1/u+NA+UUMSQmDUkvUMZuQzDdnMdtvYK0baPT8nzAcvLbRTe2AXL3fq/iH4 X-Received: by 2002:a17:902:c411:b0:1d4:1994:b554 with SMTP id k17-20020a170902c41100b001d41994b554mr967883plk.80.1703219977327; Thu, 21 Dec 2023 20:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703219977; cv=none; d=google.com; s=arc-20160816; b=n915jLt7mqnBZtQoCrXza45NSGbrWWW4/orcyzItHi2SP4+j01mgE+v0MC/n5btKle InMq+2VvxIGk4c4WyHbg9loQEDx13E2c5Q6RmVrEjMmx46sBnfAfBjtUpy9iMhpQaj4J GiE8v2zn1PyYsc8sZTprRDqY4Dhdi1VqnBq0U39dqDRDi7VMERvjYn2tW0lD3QeD1ojA LuIePEiM4d/+p62BSxC4cQ3AeJeiEIQcsNZYwaicsQHO3fTezJauPBpC59zto2lWs0yf Ui81q9uDmHmyAUoBFHQ0RwhXquiielNCyFdC4GxTEvaZgDl4tnqit4C7sX4SAqGpkPUq KjWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=Ww/u4bAQ2Y0urQrjCtL64yN7zVP/okgR7qn5HpVAFSs=; fh=xwUHAcblIzhNTankEvej/3kLZeeLU5LfFrnrmtZZ3+o=; b=lEnN0FGGHqCuOQT1lHnHtnjXuDHSOvMcWFLk8GZ/ElDlRBZXnnfmbqm8xzhqtiIrP3 Bnd3TuPQO8XIJ8MNWjHJuJ24hZS9TSg+ITCL7InKPVyoT1CULxStu6Teo02zbs0g5ENG LU9p7BSJ5mnAhgzw2mPV8Dpl8mRx7jiNhZ52NwEQu6HeEzq/HeQDir0dscXFDcNeP0y/ 319xnzgalC1btg+XAJ2xuJbYNZXAsn4TSgrWhVD60Ua/SmiyYuZMsyM0Lp2QpVNw4/SU RQq71D1reytIKg5B33IIhi90O/3hQgYFeqRybi+TF4zIcTgiYY4vJ+CIEoDmkwp6PQHS MA0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SHe3X716; spf=pass (google.com: domain of linux-kernel+bounces-9323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9323-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d14-20020a170902aa8e00b001d09e7f1e1esi2479827plr.429.2023.12.21.20.39.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 20:39:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SHe3X716; spf=pass (google.com: domain of linux-kernel+bounces-9323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9323-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 17EF2B24CFA for ; Fri, 22 Dec 2023 04:38:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 216D5539A; Fri, 22 Dec 2023 04:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="SHe3X716" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 63FE22115 for ; Fri, 22 Dec 2023 04:38:20 +0000 (UTC) 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=google.com Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1d3ea8d0f9dso64475ad.1 for ; Thu, 21 Dec 2023 20:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1703219900; x=1703824700; darn=vger.kernel.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=Ww/u4bAQ2Y0urQrjCtL64yN7zVP/okgR7qn5HpVAFSs=; b=SHe3X7168OnlyIrHuaeAWPWYx9D3cIP0cRQd98+PrBIIpSQL7mWZPGZBcr0gua4URV I7nqu4PlzfYYG/+o5EzquNDFcHdq3CUWBkqdvPO7BW2f3ZfEGnumF5KosCWcRJhXhS6p Tah85LUiQy7K9vuKPH9UOkUxgCyLnU7OMu7SzSfiH4qC4EK9/QEMWicgnK+VEFSxDhxX viuyYr+Ak1yQHS2yeE67/+z+rwKt8ne/DSx4DXkcdet7Jb62SgltAx0aK+ZFIh7cjoqw Zp9LJue9hBMDw+AmQncYjXpPx6orgSptGgPpGQvjjcN37Ty+ntEmQeFM5pH0ias0xKEU kqhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703219900; x=1703824700; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ww/u4bAQ2Y0urQrjCtL64yN7zVP/okgR7qn5HpVAFSs=; b=rn67Bo4+5JMSahl0a8/bQlLKycw54B1roTfgKY1sXWXL3SlNazmcGLgolvi1H8UWuB jb2Yp7owjY74UM4kVMRM447hYopgSP9zeUWOLxeiYNysEXo2LBHgZx7DlE3gl1ryoUsx Pq1T7smye5+saX/akDTAGbmaY1N4uSM5Gx82KUfP6tNziMDDnnJe1c0eG5TDdCMf0pQj ZmWM7Az9QU7Ck9YezfCZTOG76lHeHQ9oqE5J4iH1WMuhfvd6rNBvQrgU3JwTvhfRKoJa 7LTiTnoccPpP4M4rHvFiOHBzpvfIPCn1yZGBBILuYpfMCv+5zituvFG6W0dJqC+MH0in i1Sg== X-Gm-Message-State: AOJu0YwVjvCpUSNjgnEqgoxo/sZKyqpx5kFN2MZUBCOUXP5QwwZ8CYvi +H5iWlbfl5VYuIlRFa3kXfEQ7s0SI2nL X-Received: by 2002:a17:903:41cd:b0:1d4:f4:bd18 with SMTP id u13-20020a17090341cd00b001d400f4bd18mr94730ple.20.1703219899500; Thu, 21 Dec 2023 20:38:19 -0800 (PST) Received: from [2620:0:1008:15:184:1476:510:6ea1] ([2620:0:1008:15:184:1476:510:6ea1]) by smtp.gmail.com with ESMTPSA id jw13-20020a056a00928d00b006d977f70cd5sm1772209pfb.23.2023.12.21.20.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 20:38:18 -0800 (PST) Date: Thu, 21 Dec 2023 20:38:18 -0800 (PST) From: David Rientjes To: Dan Schatzberg cc: Johannes Weiner , Roman Gushchin , Yosry Ahmed , Huan Yang , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Tejun Heo , Zefan Li , Jonathan Corbet , Michal Hocko , Shakeel Butt , Muchun Song , Andrew Morton , Kefeng Wang , SeongJae Park , "Vishal Moola (Oracle)" , Nhat Pham , Yue Zhao Subject: Re: [PATCH v5 1/2] mm: add defines for min/max swappiness In-Reply-To: <20231220152653.3273778-2-schatzberg.dan@gmail.com> Message-ID: References: <20231220152653.3273778-1-schatzberg.dan@gmail.com> <20231220152653.3273778-2-schatzberg.dan@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Wed, 20 Dec 2023, Dan Schatzberg wrote: > We use the constants 0 and 200 in a few places in the mm code when > referring to the min and max swappiness. This patch adds MIN_SWAPPINESS > and MAX_SWAPPINESS #defines to improve clarity. There are no functional > changes. > > Signed-off-by: Dan Schatzberg Acked-by: David Rientjes