From nobody Thu Jan 09 14:56:19 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YTSXg72wKz5kwmH; Thu, 09 Jan 2025 14:56:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YTSXg6Yryz48tG; Thu, 9 Jan 2025 14:56:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736434579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c7YE8OCpXIsUhuLcT4IwIOuXABTNL2WIIB8NAJx0Fco=; b=VdcMyGLTgRsEr4YFxeyB2ujat0tv4vz1IOQVIvJuF9j3Covoo/GjryEEuah8VWfTpbiSkU eIZJcpzYqKeUvHp1sZVxBUVGw3xh7KaMVbz+8JBNfI07IDADCNriVjrEyGLj1O2I5wHkDK z42jekA/HWsWWRS103SNA42Oy6H2C+wUNkDn5jNrO3vTNowHs5JGvQGzE1NDw/qlknoR7T +g8rvYqWvLNnjgjGUgdB9aVZAguX8Vyhu87Je6Rp6bsQA6Lplw0HzXaZ9P43NOXRku8PZ6 5kTHhFAIXcm2N2rDlAHEHatQSM77KidccHM1h01CHngTYNaWpARC/PyySeu7sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736434579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c7YE8OCpXIsUhuLcT4IwIOuXABTNL2WIIB8NAJx0Fco=; b=mF+LQh+rhFg974kmALMAi06+/s5v0SS1beBTPNFpBgnLEOL+dmG9MJb+oBxINlmd68AwqF eW3s1oWNx4pCt2U8eHfC1n7aiFXTRma9+FWDxijDeSXxmTVglSnS+axBV/MUTY3Ghfu8Qf 7rjCjrx/OyOrPclnqtmtm4vvZ7NrG9Bibd24AzNcghmSBLULUbQ6vJtx0mVCXsaRyiykBT AbfwPcJZqtZ/KYtF9A1jCh6dbiW1sf9kCN1EwU2+L7lOwU99IuR7SUeXZmBl1N6O6YV+MJ W00hQoPv2CxjLDs7AutfAtRSvhE7af4LhU70bK6zdNLgsECBXp123wn1c9uIjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736434579; a=rsa-sha256; cv=none; b=UmbHa2r+fXp/NtSqqad8ZfdX2GrRb8JKyBEiZhFEIMhC2ymmIcXNzLRzgM9ezBVLLsDFd/ 78e5iaQCtUiAKSqW4zHdZCFnrPduSpGokCveZEDcW1EF2qUeMMAUCjxjnuXadTVPE/DUpM 5zCFHuPnbc8SSlskdBj9VQLKpNY5EVA1Kk6avtUmTd9U5ro40ffRShZagwn94p8DO6z1rE HuJLOfrJ8UnvTEb3ZDNRSuoc05lhms6yMSGvnfHrmrXbLfAOkXWmfDIWboRllOOjwDCDkF gv5Z94gpLkNH1fE2JMwwjfMJboJd8uAsjl0UyT56hv7qougI37vJlh4ez2R77w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YTSXg62WszVZF; Thu, 09 Jan 2025 14:56:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 509EuJfW047163; Thu, 9 Jan 2025 14:56:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 509EuJ4L047160; Thu, 9 Jan 2025 14:56:19 GMT (envelope-from git) Date: Thu, 9 Jan 2025 14:56:19 GMT Message-Id: <202501091456.509EuJ4L047160@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: fe1165df4b77 - main - vm_pageout: Make vmd_oom a bool List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fe1165df4b776b14b21a04d2ef3fc4c46740c2f5 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=fe1165df4b776b14b21a04d2ef3fc4c46740c2f5 commit fe1165df4b776b14b21a04d2ef3fc4c46740c2f5 Author: Mark Johnston AuthorDate: 2025-01-09 14:53:37 +0000 Commit: Mark Johnston CommitDate: 2025-01-09 14:53:37 +0000 vm_pageout: Make vmd_oom a bool No functional change intended. Reviewed by: dougm, kib MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Modirum MDPay Differential Revision: https://reviews.freebsd.org/D48376 --- sys/vm/vm_page.c | 2 +- sys/vm/vm_pageout.c | 6 +++--- sys/vm/vm_pagequeue.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index f351295c1af5..f042d4767b36 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -460,7 +460,7 @@ vm_page_domain_init(int domain) vmd->vmd_page_count = 0; vmd->vmd_free_count = 0; vmd->vmd_segs = 0; - vmd->vmd_oom = FALSE; + vmd->vmd_oom = false; for (i = 0; i < PQ_COUNT; i++) { pq = &vmd->vmd_pagequeues[i]; TAILQ_INIT(&pq->pq_pl); diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 28a54a83fd49..d26e04f60c00 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1773,7 +1773,7 @@ vm_pageout_mightbe_oom(struct vm_domain *vmd, int page_shortage, vmd->vmd_oom_seq++; if (vmd->vmd_oom_seq < vm_pageout_oom_seq) { if (vmd->vmd_oom) { - vmd->vmd_oom = FALSE; + vmd->vmd_oom = false; atomic_subtract_int(&vm_pageout_oom_vote, 1); } return; @@ -1788,7 +1788,7 @@ vm_pageout_mightbe_oom(struct vm_domain *vmd, int page_shortage, if (vmd->vmd_oom) return; - vmd->vmd_oom = TRUE; + vmd->vmd_oom = true; old_vote = atomic_fetchadd_int(&vm_pageout_oom_vote, 1); if (old_vote != vm_ndomains - 1) return; @@ -1806,7 +1806,7 @@ vm_pageout_mightbe_oom(struct vm_domain *vmd, int page_shortage, * memory condition is still there, due to vmd_oom being * false. */ - vmd->vmd_oom = FALSE; + vmd->vmd_oom = false; atomic_subtract_int(&vm_pageout_oom_vote, 1); } diff --git a/sys/vm/vm_pagequeue.h b/sys/vm/vm_pagequeue.h index af1183e63e53..23a3ea96d80c 100644 --- a/sys/vm/vm_pagequeue.h +++ b/sys/vm/vm_pagequeue.h @@ -257,7 +257,7 @@ struct vm_domain { /* Paging control variables, used within single threaded page daemon. */ struct pidctrl vmd_pid; /* Pageout controller. */ - boolean_t vmd_oom; + bool vmd_oom; u_int vmd_inactive_threads; u_int vmd_inactive_shortage; /* Per-thread shortage. */ blockcount_t vmd_inactive_running; /* Number of inactive threads. */