From nobody Thu May 02 13:26:47 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 4VVZTh0N6Kz5JJTD; Thu, 2 May 2024 13:26:48 +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 4VVZTg62gHz49kl; Thu, 2 May 2024 13:26:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714656407; 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=eouMGWdh2IrOhhiPc15/vHW8yDgjlJePDaDzo2Bv51g=; b=nneD7XA/dixh8lf+GOZz/8EhkkCy7QO+Qj0MGSkoJiD2nvdcaURLHtBan6dRhstQtBGnKC oXxbgwYsn29WgIZNTUhHEMHhnkXGyS1b2GywIdP75nURe/4+ZNY2MltUDgZRIaU0bVOkDX vpvk0D/P+sNQ5KrV9RGG9CojoI9FgA/F0ZdEVfuvQT+3ZjV2fUinCsMvmY80dZ+SB6GHDC nAZsWQkj+TMr45RZ8E7zwLm3PcUdEqyL7vlq4srB+aXfQQV03hsGwQMduxvbIN/HLuHFzj 5WHocXgIaZ2lD6w3I6raIqMk03JE4Beg2BenPr2da+GfL7XSnEjuAJ0DsoI09A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714656407; a=rsa-sha256; cv=none; b=Rp/gX2XIKJDSiIqS6FFBlq/8Ps2Gq/A8b7ptbUE1ht7rHyPZEaGfY8NQ7ulBiqzQU9t8zS lZYgwY6gATuitemV+3mymcYNLMr5ql4XNLV52wHxtq/Can6ojqnEdYdvi8vOmyX13IN/vW 4h7Lm0/hXJJUIj0jqU6Hp1S3BeX6gVX/vP14nTLFNR8nfu5JkU4J/GhvBgM3Srtfyxmk1c sGo//jRKU6KORiB8zAsQk8DhEtLQhbxvspAPlIY6DmbOlBWo0Mf0jwb/Q6X756Lfm4bL7z jRr1xD48GJ4eIqrIQ/6UAlYeQ8hA4mS6RVgE+t7WDcB7FgRkyVm9kxD9a2flaA== 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=1714656407; 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=eouMGWdh2IrOhhiPc15/vHW8yDgjlJePDaDzo2Bv51g=; b=tZrQiu8ntjlGwzWrgEdRTOzWHpi9uzj3o5W1B60Sxa/TA5UyXA+fwEPzRTeY+qs7TTXlx2 C2OxcYP4Kn3ZGUqUnkyab/w6eCQeYNkGC+wPSJVI0GNPLbgeVbLD5Yox+AtdFL3diMzhlb X/Rxch4H3E82g+TGMvv/sJ+Lp+J1uHFSDKoYtBIqN8ZXt1LAWrbKWkGrwxgwmDlKd0N5at l3fZ5A6WEMtqkMxv8aOS0idjOfAxv1bTQG3FnGtfFBHTOidtcuMBIGtZpUUaOSwmUE4vOZ 0e1CbL0wzg3VKatWgiZrIX2PFvz5rTOCFYTAfY1EBFcazX0PqRXkFpd/oZvsjQ== 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 4VVZTg5b1gz14HQ; Thu, 2 May 2024 13:26:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 442DQlpY080823; Thu, 2 May 2024 13:26:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 442DQlZY080820; Thu, 2 May 2024 13:26:47 GMT (envelope-from git) Date: Thu, 2 May 2024 13:26:47 GMT Message-Id: <202405021326.442DQlZY080820@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: b6a2ce76d6b6 - stable/14 - udf: uma_zcreate() does not fail 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b6a2ce76d6b60bb363f6b83559c0d5e19027cad9 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b6a2ce76d6b60bb363f6b83559c0d5e19027cad9 commit b6a2ce76d6b60bb363f6b83559c0d5e19027cad9 Author: Mark Johnston AuthorDate: 2024-04-23 16:20:50 +0000 Commit: Mark Johnston CommitDate: 2024-05-02 13:25:08 +0000 udf: uma_zcreate() does not fail While here remove an old comment regarding preallocation; it appears to refer to an optimization that is almost certainly irrelevant at this point. No functional change intended. MFC after: 1 week (cherry picked from commit 78c51db3c4927db2437ec616b33ba1faf73f08ee) --- sys/fs/udf/udf_vfsops.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c index e844a4e540f4..866d0172f745 100644 --- a/sys/fs/udf/udf_vfsops.c +++ b/sys/fs/udf/udf_vfsops.c @@ -140,11 +140,6 @@ static int udf_init(struct vfsconf *foo) { - /* - * This code used to pre-allocate a certain number of pages for each - * pool, reducing the need to grow the zones later on. UMA doesn't - * advertise any such functionality, unfortunately =-< - */ udf_zone_trans = uma_zcreate("UDF translation buffer, zone", MAXNAMLEN * sizeof(unicode_t), NULL, NULL, NULL, NULL, 0, 0); @@ -154,12 +149,6 @@ udf_init(struct vfsconf *foo) udf_zone_ds = uma_zcreate("UDF Dirstream zone", sizeof(struct udf_dirstream), NULL, NULL, NULL, NULL, 0, 0); - if ((udf_zone_node == NULL) || (udf_zone_trans == NULL) || - (udf_zone_ds == NULL)) { - printf("Cannot create allocation zones.\n"); - return (ENOMEM); - } - return 0; }