From nobody Wed Apr 24 13:17:14 2024 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 4VPffM1BJFz5HL56; Wed, 24 Apr 2024 13:17:15 +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 4VPffL5TJXz4LXP; Wed, 24 Apr 2024 13:17:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713964634; 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=0Vgh9gn99OzncbM5AVF/ohN9ecUfPHkbAh08PvMTSoI=; b=IXlffjrASyUEX8WaDouJAXtzIwjJeJx1sz/CMA7S0rNRBr+NS+gUGp5Rc/ptLy9zss6JBt dRIZr/9sc+OpcPwkp8gHgiE8PXrme3975Za5A7OhTsHDVNaLizWZHpG9fZYJZsms3jMOe/ xT1w1WE7HpNINfTkbbzmUIl0mCbuWfQn28FDHGtoyGhh4T/mBscy7QNiGmWUCzV4ull5RM 9bcsopTidHFq/T81bseRdJCbpJR4mFfvg9VE6iGgF4mcQ22OOLSh7uS9GveyUiqUiGEfJw Zt4f/scIdZ5q1n/xsUyEsSyGoCsYwBkkDCkgqr6dzKzF+4yj4tqpImseU5w9kQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713964634; a=rsa-sha256; cv=none; b=LqkMvL8EL5S83gZyOrtaAEwpOsiJfFsRdVcrJh5FaZA5jpfhGBzfQSHW35urU9j7+ki+5y pZnFJvcpvMdmzy+pxPC6qGlSaEYnOBjuL8HwZkfkGxjyKncREb+felxJsNkXNmO1ytUpkm 3eyq+A9RtxB2XyIPK4R6HLcWoVQKXhvI6HQUgyXq7fcOufZ5vK96fgRDUqQ70OkIMe47Vy crwgspf0KwrXk9kB9AjhrF2WYIBggpGkgIvy7hoSHZtUnJd9xYzE5yLYFFb01zoiKEdQsQ c8JaEz53UW4BfWKnU/+vVwmJuFdU6hiSKBST4AxmCipHtjOo5Byp5QgnqsuFUA== 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=1713964634; 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=0Vgh9gn99OzncbM5AVF/ohN9ecUfPHkbAh08PvMTSoI=; b=A0zwAXYxUD5lJBxoicyU+jVsSP+S1C26MRT6M25HaMs2vCOc9tMLzXdPTiGmC8uMKVJ3Rx PW3X3pwI+lbLMTjE5KVx6XNvm1ccwOVGm4yQQ/n4R1MRGXZuSXJLdVupyIFyRafWWXSBNU uX4ZSguYcBtyQE5kYmYMoW1L3EowaXhcxmH/Dievkso0Wg3qx+qhlGkvVso5DP2UEM9WZm ZXk3gMfW42IgzhpI6CqwDGJtQyaDYgasVFLaoYaSiiTmBu/qdmFpw+HBoy1fWpPvWMrYKc HpPKZj0QrZ7TReBln5H3+5bd/FhR9sG70W2JNHw5Ml9JkOAZjH4f3QnNClNH3w== 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 4VPffL553RzGds; Wed, 24 Apr 2024 13:17:14 +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 43ODHE2Z053467; Wed, 24 Apr 2024 13:17:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43ODHET5053464; Wed, 24 Apr 2024 13:17:14 GMT (envelope-from git) Date: Wed, 24 Apr 2024 13:17:14 GMT Message-Id: <202404241317.43ODHET5053464@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: 78c51db3c492 - main - udf: uma_zcreate() does not fail 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: 78c51db3c4927db2437ec616b33ba1faf73f08ee Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=78c51db3c4927db2437ec616b33ba1faf73f08ee commit 78c51db3c4927db2437ec616b33ba1faf73f08ee Author: Mark Johnston AuthorDate: 2024-04-23 16:20:50 +0000 Commit: Mark Johnston CommitDate: 2024-04-24 12:45:59 +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 --- 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; }