diff options
-rw-r--r-- | resize/resize2fs.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/resize/resize2fs.c b/resize/resize2fs.c index 346fd539..024f1ccd 100644 --- a/resize/resize2fs.c +++ b/resize/resize2fs.c @@ -1711,7 +1711,6 @@ static errcode_t fix_resize_inode(ext2_filsys fs) struct ext2_inode inode; errcode_t retval; char * block_buf; - blk_t blk; if (!(fs->super->s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INODE)) @@ -1723,20 +1722,6 @@ static errcode_t fix_resize_inode(ext2_filsys fs) retval = ext2fs_read_inode(fs, EXT2_RESIZE_INO, &inode); if (retval) goto errout; - if (fs->super->s_reserved_gdt_blocks == 0) { - fs->super->s_feature_compat &= - ~EXT2_FEATURE_COMPAT_RESIZE_INODE; - ext2fs_mark_super_dirty(fs); - - if ((blk = inode.i_block[EXT2_DIND_BLOCK]) != 0) - ext2fs_block_alloc_stats(fs, blk, -1); - - memset(&inode, 0, sizeof(inode)); - - retval = ext2fs_write_inode(fs, EXT2_RESIZE_INO, &inode); - goto errout; - } - ext2fs_iblk_set(fs, &inode, 1); retval = ext2fs_write_inode(fs, EXT2_RESIZE_INO, &inode); |