]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - lib/ext2fs/initialize.c
debugfs, e2fsck: fix s_desc_size handling
[thirdparty/e2fsprogs.git] / lib / ext2fs / initialize.c
index 5afdc27252a98bf962eaa70e5a5de60484939929..2db8b3c2d1f22eafeff1d6b75270488f6fe596aa 100644 (file)
@@ -272,8 +272,9 @@ retry:
                goto cleanup;
        }
 
-       if (super->s_feature_incompat & EXT4_FEATURE_INCOMPAT_64BIT)
-               super->s_desc_size = EXT2_MIN_DESC_SIZE_64BIT;
+       set_field(s_desc_size,
+                 super->s_feature_incompat & EXT4_FEATURE_INCOMPAT_64BIT ?
+                 EXT2_MIN_DESC_SIZE_64BIT : 0);
 
        fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count,
                                          EXT2_DESC_PER_BLOCK(super));