From nobody Mon Jul 11 05:41:23 2022 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 8F82A1D0383F; Mon, 11 Jul 2022 05:41:23 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LhCRl3f7pz404J; Mon, 11 Jul 2022 05:41:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657518083; 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=tmi4qZcG37BkiMcbQky8jz+XJXGNdHyCQhGbm/f8G/Q=; b=jTOXVGqv4pRBe3my0L2m/8p/B+BaGKcB1pviKhfE9iPqozuEbDCitoUWDeTjlWbOgalMlf gK6PGV3UL2AD+BQPbTG14WXJ0JxIASIVu54DTehVjRV2mj9TgoYqfHZgCtPNrgZj08rUIB qyo7m8rXkgS5EKCEex64xzuLtkKoKEFqkJV0DiLmV+UgtMcXBK/IeuSIjy/FJamQRNOtbR 7raOY7vBHD5Ux3RsH6KAKkqYE27TRNvmjGDjl+klUwtQt/eAr+XKMbtQTmRqVhGf/VXhoL AAiIqDz+h4lnRdJHl9QYYCtIcD2PggXQrSXVfd/XQ/KAFu33bLbQH1Pn8vvo7w== 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 4LhCRl2jZSzsWr; Mon, 11 Jul 2022 05:41:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26B5fNio048383; Mon, 11 Jul 2022 05:41:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26B5fNPS048378; Mon, 11 Jul 2022 05:41:23 GMT (envelope-from git) Date: Mon, 11 Jul 2022 05:41:23 GMT Message-Id: <202207110541.26B5fNPS048378@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Doug Moore Subject: git: 86299ec1c418 - stable/13 - vm_phys: hide vm_phys_set_pool 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 86299ec1c418512609a2c3eff9bce5689db11211 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657518083; 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=tmi4qZcG37BkiMcbQky8jz+XJXGNdHyCQhGbm/f8G/Q=; b=tzJ0D4vK7V6fkMk3o91yRD8XIxGNb01Fa43FeCcZD4kVObY42wWpV/Of3dvxgxg3XaqTru Vlrp7VlV1Q9RNsIVamJYBa3yFgw1LHcVihu7w2/420PgnAYirQOmUeP5JIuDFLawUeBRWc D6I5rYTD+I4EbqR3i1mtnCKVZa3lycps2ApFMOS8jjFR8ypROr3eHzhPS0GL9dWWCVkRxd Ar7giz7L94QIDEcRc3r2NCalPHABDHe/i9Mplb15CPCcR3Pmd3QtlHQICbYOOhuI8h3bYJ nYALNIk3nl57vyWqsN2tjOf5GfWW5q9LOGvzhODuidLH2xur+AHN9+om7hFohw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657518083; a=rsa-sha256; cv=none; b=dIlSG3dFn8whfJTYJZRZ+9Ve6HHkTgP1DTZtLAcxvnQOQe59pCfZn/TRbiwjp9Hi5YVa3q eNeYe63DDh4gUKz8u8JDp+ZbLU40f+wEhUyHKgq0nt6K/F+XL7Q2olpRZyK8SeJlmpp3KL +74CpMaXTVBGjntiTlm8mOU6OlnWCex5t4aaecuKMNp/oPsVLDz7Z+hISuKtMukj8LFmZU MekV0hKIkuldOkgjrC4nkswYRZf/1Slqc/9BO5hi0PkHiCPzUtW5uVpcGg4sdwpFBtCjiD u2fIAZL6nwfasbwXUCGTSFcQHTPTje0xdjKtWrN11h6x2h2pHQfwABacFf/q0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=86299ec1c418512609a2c3eff9bce5689db11211 commit 86299ec1c418512609a2c3eff9bce5689db11211 Author: Doug Moore AuthorDate: 2021-12-29 17:10:31 +0000 Commit: Doug Moore CommitDate: 2022-07-11 05:41:04 +0000 vm_phys: hide vm_phys_set_pool It is only called in the file that defines it, so make it static and remove the declaration from the header. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D33688 (cherry picked from commit 8119cdd38b4f3ebdba92d8d0658fabbc04a1f238) --- sys/vm/vm_phys.c | 25 ++++++++++++------------- sys/vm/vm_phys.h | 1 - 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index b0aaa822211f..ad997581e77c 100644 --- a/sys/vm/vm_phys.c +++ b/sys/vm/vm_phys.c @@ -179,7 +179,6 @@ static void _vm_phys_create_seg(vm_paddr_t start, vm_paddr_t end, int domain); static void vm_phys_create_seg(vm_paddr_t start, vm_paddr_t end); static void vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, int order, int tail); - /* * Red-black tree helpers for vm fictitious range management. */ @@ -711,6 +710,18 @@ vm_phys_enq_range(vm_page_t m, u_int npages, struct vm_freelist *fl, int tail) } while (npages > 0); } +/* + * Set the pool for a contiguous, power of two-sized set of physical pages. + */ +static void +vm_phys_set_pool(int pool, vm_page_t m, int order) +{ + vm_page_t m_tmp; + + for (m_tmp = m; m_tmp < &m[1 << order]; m_tmp++) + m_tmp->pool = pool; +} + /* * Tries to allocate the specified number of pages from the specified pool * within the specified domain. Returns the actual number of allocated pages @@ -1273,18 +1284,6 @@ vm_phys_scan_contig(int domain, u_long npages, vm_paddr_t low, vm_paddr_t high, return (NULL); } -/* - * Set the pool for a contiguous, power of two-sized set of physical pages. - */ -void -vm_phys_set_pool(int pool, vm_page_t m, int order) -{ - vm_page_t m_tmp; - - for (m_tmp = m; m_tmp < &m[1 << order]; m_tmp++) - m_tmp->pool = pool; -} - /* * Search for the given physical page "m" in the free lists. If the search * succeeds, remove "m" from the free lists and return TRUE. Otherwise, return diff --git a/sys/vm/vm_phys.h b/sys/vm/vm_phys.h index d10eb96f938f..86785fd7579d 100644 --- a/sys/vm/vm_phys.h +++ b/sys/vm/vm_phys.h @@ -79,7 +79,6 @@ void vm_phys_register_domains(int ndomains, struct mem_affinity *affinity, int *locality); vm_page_t vm_phys_scan_contig(int domain, u_long npages, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, int options); -void vm_phys_set_pool(int pool, vm_page_t m, int order); boolean_t vm_phys_unfree_page(vm_page_t m); int vm_phys_mem_affinity(int f, int t); void vm_phys_early_add_seg(vm_paddr_t start, vm_paddr_t end);