git: 5034b44574c4 - main - Remove unnecessary e2fs_first_dblock value check

From: Fedor Uporov <fsu_at_FreeBSD.org>
Date: Thu, 30 Dec 2021 06:15:17 UTC
The branch main has been updated by fsu:

URL: https://cgit.FreeBSD.org/src/commit/?id=5034b44574c44d50bcb5fadec1d6aae152855bc0

commit 5034b44574c44d50bcb5fadec1d6aae152855bc0
Author:     Fedor Uporov <fsu@FreeBSD.org>
AuthorDate: 2021-12-24 14:05:04 +0000
Commit:     Fedor Uporov <fsu@FreeBSD.org>
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)) {