@@ -716,19 +716,9 @@ static errcode_t adjust_superblock(ext2_resize_t rfs, blk64_t new_size)
}
/*
- * If we are shrinking the number block groups, we're done and
+ * If we are not increasing the number block groups, we're done and
* can exit now.
*/
- if (rfs->old_fs->group_desc_count > fs->group_desc_count) {
- retval = 0;
- goto errout;
- }
-
- /*
- * If the number of block groups is staying the same, we're
- * done and can exit now. (If the number block groups is
- * shrinking, we had exited earlier.)
- */
if (rfs->old_fs->group_desc_count >= fs->group_desc_count) {
retval = 0;
goto errout;
Signed-off-by: Jan Kara <jack@suse.com> --- resize/resize2fs.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)