From nobody Mon Sep 23 18:28:58 2024 X-Original-To: dev-commits-src-all@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 4XCBMt6g9Gz5WL2D; Mon, 23 Sep 2024 18:28:58 +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 4XCBMt62MKz4Vvl; Mon, 23 Sep 2024 18:28:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727116138; 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=eHZb+rVJImXEqGu8MxHn3H/fvgazsrgReMtdm3z0xtE=; b=LrIBwQfX81K/mtzZuFiF7fiQuu22vMe63XJn/CkOnjyaK2zUjo+/qL4DlxApaXZ0kY7aku SL7xw3t9WHwZQ32fOnZXytEr8Jf5XEo3izQCe0CPWetrKrHjpoU5FlBjMhlWLQpzGR4c5z 1mOMzcK9h9j2IX5gJWpZx8ym+28qEuocRIcQvX4litaqBUb8MAbKgCRw2b2Dj8gbdWVQ4Z uxe89QrczJOgpulxgi5T6VdHjZL2/y6U/GD6z/+G/hiM9PrNEDLrsGLZg2zzvLsZ+0ouvU 2pSTfLG6tCCpVXaNmenD+DYbEEi7rExHT5zVoBGk5COKlVLWJqyFHw9Vh7XAaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727116138; a=rsa-sha256; cv=none; b=En9ZGp41RLe04qUawWYQCXJ73lkiVkpeuAYQKgQ7hsCgwizmD6tEkKPZLIHkiE6NI0O2jI StK7SDhpCSX+OM2POG/Q6WJZKmg2EAbYZpkKljJx0qNrxIim8yoHRP48omgU7fsJ0aCrOH 1hc9Yjq6OjZJLh/2MJ6saCzUW2kQqanx/P4aN1glsA2zO+zVxwhLpTq9ajRcyP98SKU6Zp mVzpUnM5RSAqO4g2FUbcY3Xy36SdOLS35ltNWkaDAvOQQ6q93Mge6lPY7Q0Y1GmoPOZQG0 HfICP4X0OGqyi6AuV6LRcUi2nIfXqiCjJgNcrUempBLyxeaxrTnVOvJSbgIRyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727116138; 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=eHZb+rVJImXEqGu8MxHn3H/fvgazsrgReMtdm3z0xtE=; b=A9+mCT5loYmgFAWhOp94smCuQE82ix7WKjrgi8Yj/ktFrGtkiTbNSqvVm/BkowDFYIt63q Oo1Ehpchtinkl7RwDrBBQoAwodXMye2C24d9KIEbqcrmbh37quU4TrdBmZ2L1tX1+DGwDY oyajBDnFevVAnRxTPPelUQld3vItyKXCNo92SQIWFNoPqm2IwQc9YYfdqU7fLYfwFr41y7 2xUXPR5FGQZhMhpm1lZEN6sORCPhhSF6sYzBMazydGGUoRl4GcgskeehbypQJS2reDRXET 7BQn4Jwj1wJ8JidZjKPMb2voR54nd3NaNrI0P1WwyJZyRlvBOXk06itAgIMRwQ== 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 4XCBMt5dW0zwYX; Mon, 23 Sep 2024 18:28:58 +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 48NISwva053323; Mon, 23 Sep 2024 18:28:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48NISwxd053320; Mon, 23 Sep 2024 18:28:58 GMT (envelope-from git) Date: Mon, 23 Sep 2024 18:28:58 GMT Message-Id: <202409231828.48NISwxd053320@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Moore Subject: git: f1aaef47a01a - main - swap_pager: update meta_free comment List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f1aaef47a01ad2b690ea251a42cbff99511459cf Auto-Submitted: auto-generated The branch main has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=f1aaef47a01ad2b690ea251a42cbff99511459cf commit f1aaef47a01ad2b690ea251a42cbff99511459cf Author: Doug Moore AuthorDate: 2024-09-23 18:27:54 +0000 Commit: Doug Moore CommitDate: 2024-09-23 18:27:54 +0000 swap_pager: update meta_free comment Clarify the comment that introduces swp_page_meta_free. Reviewed by: markj, alc Differential Revision: https://reviews.freebsd.org/D46754 --- sys/vm/swap_pager.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 954228dfaaf0..aa0297daefe9 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -2264,12 +2264,9 @@ swp_pager_meta_transfer(vm_object_t srcobject, vm_object_t dstobject, /* * SWP_PAGER_META_FREE() - free a range of blocks in the object's swap metadata * - * The requested range of blocks is freed, with any associated swap - * returned to the swap bitmap. - * - * This routine will free swap metadata structures as they are cleaned - * out. This routine does *NOT* operate on swap metadata associated - * with resident pages. + * Return freed swap blocks to the swap bitmap, and free emptied swblk + * metadata. With 'freed' set, provide a count of freed blocks that were + * not associated with valid resident pages. */ static void swp_pager_meta_free(vm_object_t object, vm_pindex_t pindex, vm_pindex_t count,