Revert "ext4: avoid negative min_clusters in find_group_orlov()"

This reverts commit aa2552d473.
This commit is contained in:
Ksawlii 2024-11-24 00:23:22 +01:00
parent 484646c44e
commit edcb108ec3

View file

@ -516,8 +516,6 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent,
if (min_inodes < 1)
min_inodes = 1;
min_clusters = avefreec - EXT4_CLUSTERS_PER_GROUP(sb)*flex_size / 4;
if (min_clusters < 0)
min_clusters = 0;
/*
* Start looking in the flex group where we last allocated an