From nobody Mon Aug 29 17:05:20 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 4MGcJJ5mXGz4bVsr; Mon, 29 Aug 2022 17:05:20 +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 4MGcJJ4xgSz3MgV; Mon, 29 Aug 2022 17:05:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661792720; 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=dp4nNazxTpl8ka4w/hd+JMtdFxEl2CXHKCWKAfGu6lM=; b=pHeHyn7zuvhCIpr5sx0t2D9efDbY6S3/Vjf7DJ/+DJuks8FRNg/1hXMZcqqguhpPnD8Q6M nFOJAkj9GvtlxOmTrS21owh0oQ7sUtk8qFfBf0Rys/lOYfCAH1wXyL0uFU7tk/ovREV4VX hkX9fw8KY1vjyIXqXCQLymCtRtNc2JHS6JIQBvWpLLFCkNezVf6fk4OgLoyx1mI1UnVDog Fw5XvG8n+paLRX0PTkmdHDMcH33Fkqg8GUTBCvUgEiK5B2xi3TbiXwFAvk3M+Kr3NGRES6 U4HURNnJES1le0b/oxm/EKUZiu6KQCPI2P6+Kopn/axFkTAGIIhFppzuRu8Yaw== 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 4MGcJJ3w8FzVhX; Mon, 29 Aug 2022 17:05:20 +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 27TH5KoJ013496; Mon, 29 Aug 2022 17:05:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27TH5KXg013495; Mon, 29 Aug 2022 17:05:20 GMT (envelope-from git) Date: Mon, 29 Aug 2022 17:05:20 GMT Message-Id: <202208291705.27TH5KXg013495@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: 575ca2c2655c - main - makefs: Remove some redundant initializations 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 575ca2c2655c921b2869573780fee5c3bf89bb53 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661792720; 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=dp4nNazxTpl8ka4w/hd+JMtdFxEl2CXHKCWKAfGu6lM=; b=KKELb4IyF4VTxuKXZWp4+/INcsz1LfS1us0TxLvNTfCgHfBgUpKYEaqHXfhmDlbqZ7a2JQ x1ta3cVJVGnEoHK8m8rJGCmzCruz1pCBVffQgKf7T4wu5nbVxfV/5E6PqlaBzuwXw3FdPS hut9DH7E3HeTa+GloRWt0HzlRrMBp2nJFkzpMPCfKzYXhV3+mEVQ7X30KhdxXKOwVubK67 Z33YuwD5RG7KIK69G3LhyJJD0mxRR0yMCTqIx8mPec7z5OccM45wmMzM7TF3IjuKWErmnn ZFXn6kUsBUsB6qXPnruI1YnBNa3DVVOCZku63MT1rPwqyZidVOnhvh+gBMepVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661792720; a=rsa-sha256; cv=none; b=yYXZL53fMZGi3yoXjACNZahs0p5uXR9oDNjW9wR5QX6uNDPvSBWK54wTBVfN/NSVkzR19Y HRgZ5VthaeSixpj7f9sN73HBwjqnfEUEbCkfqw4d4z819BRD3s+ksgEAr8h24jQYKsB2P3 Y3O4//LbTVAVzDEE7Gh7dW7NKIXuK9PghVD+jSgtRVEGly+mgFI/bQhGSR7mqj2rbMhAsz gSjU7q1N6uXrJnrpEy7VBBgCvfc/lgCzi6Ap9mzGZlsAZaQYnccoiPpwAGzvaA02K7fQI8 DsV8oTDzIgjBTU/JaiGhhX0iGTDx49bUIkRaVJlN2b8OnUzO59aZPR0eRowozg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=575ca2c2655c921b2869573780fee5c3bf89bb53 commit 575ca2c2655c921b2869573780fee5c3bf89bb53 Author: Mark Johnston AuthorDate: 2022-08-29 16:33:55 +0000 Commit: Mark Johnston CommitDate: 2022-08-29 16:50:51 +0000 makefs: Remove some redundant initializations No functional change intended. --- usr.sbin/makefs/zfs/zap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/usr.sbin/makefs/zfs/zap.c b/usr.sbin/makefs/zfs/zap.c index 33ca2650cf3d..0bcc77d1aca0 100644 --- a/usr.sbin/makefs/zfs/zap.c +++ b/usr.sbin/makefs/zfs/zap.c @@ -215,7 +215,6 @@ zap_micro_write(zfs_opt_t *zfs, zfs_zap_t *zap) dnode = zap->dnode; dnode->dn_maxblkid = 0; dnode->dn_datablkszsec = bytes >> MINBLOCKSHIFT; - dnode->dn_flags = DNODE_FLAG_USED_BYTES; vdev_pwrite_dnode_data(zfs, dnode, zfs->filebuf, bytes, loc); } @@ -505,10 +504,8 @@ zap_fat_write(zfs_opt_t *zfs, zfs_zap_t *zap) * Write the whole thing to disk. */ dnode = zap->dnode; - dnode->dn_nblkptr = 1; dnode->dn_datablkszsec = blksz >> MINBLOCKSHIFT; dnode->dn_maxblkid = lblkcnt + 1; - dnode->dn_flags = DNODE_FLAG_USED_BYTES; c = dnode_cursor_init(zfs, zap->os, zap->dnode, (lblkcnt + 1) * blksz, blksz);