From nobody Thu Dec 30 06:15:17 2021 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 EC40E19202FE; Thu, 30 Dec 2021 06:15:17 +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 4JPdKx4HCMz3mDc; Thu, 30 Dec 2021 06:15:17 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 73BFF138C1; Thu, 30 Dec 2021 06:15:17 +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 1BU6FHEx064931; Thu, 30 Dec 2021 06:15:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BU6FH8A064930; Thu, 30 Dec 2021 06:15:17 GMT (envelope-from git) Date: Thu, 30 Dec 2021 06:15:17 GMT Message-Id: <202112300615.1BU6FH8A064930@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Fedor Uporov Subject: git: 5034b44574c4 - main - Remove unnecessary e2fs_first_dblock value check 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5034b44574c44d50bcb5fadec1d6aae152855bc0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640844917; 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=07Ry0u9ZAxbRmVA5mQB61qcW0mjBbrK++ADzIBswxOw=; b=HDaatcMZD/YmtSttzCurm7o5/aEsTONoOI5Ry4Wka4bEL8zvpTiLS3ZHyEHLq6Kirmk3uY yF6BcYuemRaAVyltloaPM1aQ2/Y5/+YVZUfLfOpS4Or5gbg4kpi6fp7XVgE4F0WySq/GfB mSm00Jbv3fi9z4WArXGrL9A7RGqqxcZV/vMCHjplfqMgtAN+gy9HCE86NX0V0CnzWCXmTK Y5stNPoxk+OT80AgjcYCBWp93AM9BfNnp6CrfGBOX2Xo77vPs9WHILyCqFjsi7HQSTfr/+ LwdOpGIeVPwnRomBMZz/YgLmxyzr/hd0T6uG0U8Ql80mtaHtCeJrdNgt9x6Bjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640844917; a=rsa-sha256; cv=none; b=FR6zA3Sb2Xax0Ik+0eebKZR15MHPqKI+upAZsfFrb6hq63s559YZQyAyaNd6sRcW7jHbZx 5ES19RhRrdXb+jtOLgS15RrfHV2N4MiPK6F8QKYvKAe+tsrroogC1Le3JvnAod2n6USiNv O39CownIyI5GhJRKg3XJWcBL2uFzeWQlct7W4+5aP0Glj9vXjQQA2GI8BzQIc5xYRAcyOv QqKshzXUFS4JRlI7ZJFrTIbDi3eRbEddfSQ6fHIz2zDF/dfRFJ6DnZ1NanWDdNU5dsC4+0 DEGCIXbeerCuPvVHQEbJyPDQ6jE+w5DQ6l0P6BdGzmiFKCuT6kW/ttlrMlJgqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fsu: URL: https://cgit.FreeBSD.org/src/commit/?id=5034b44574c44d50bcb5fadec1d6aae152855bc0 commit 5034b44574c44d50bcb5fadec1d6aae152855bc0 Author: Fedor Uporov AuthorDate: 2021-12-24 14:05:04 +0000 Commit: Fedor Uporov CommitDate: 2021-12-30 06:14:44 +0000 Remove unnecessary e2fs_first_dblock value check MFC after: 2 weeks --- sys/fs/ext2fs/ext2_vfsops.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/fs/ext2fs/ext2_vfsops.c b/sys/fs/ext2fs/ext2_vfsops.c index 0ab0327ae074..b89786b2c2e2 100644 --- a/sys/fs/ext2fs/ext2_vfsops.c +++ b/sys/fs/ext2fs/ext2_vfsops.c @@ -465,13 +465,6 @@ ext2_compute_sb_data(struct vnode *devvp, struct ext2fs *es, int g_count = 0; int error; - /* Check if first dblock is valid */ - if (fs->e2fs->e2fs_bcount >= 1024 && fs->e2fs->e2fs_first_dblock) { - SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error, - "first dblock is invalid"); - return (EINVAL); - } - /* Check checksum features */ if (EXT2_HAS_RO_COMPAT_FEATURE(fs, EXT2F_ROCOMPAT_GDT_CSUM) && EXT2_HAS_RO_COMPAT_FEATURE(fs, EXT2F_ROCOMPAT_METADATA_CKSUM)) {