/*
* The routine scans buddy structures (not bitmap!) from given order
* to max order and tries to find big enough chunk to satisfy the req
-@@ -2285,6 +2304,93 @@ static const struct seq_operations ext4_
+@@ -2285,6 +2304,90 @@ static const struct seq_operations ext4_
.show = ext4_mb_seq_groups_show,
};
+ cur = str;
+ end = str + cnt;
+ while (cur < end) {
-+ int rc;
+ while ((cur < end) && (*cur == ' '))
+ cur++;
-+ rc = kstrtol(cur, 0, &value);
-+ if (rc != 0)
-+ return -EINVAL;
++ value = simple_strtol(cur, &cur, 0);
+ if (value == 0)
+ break;
+ if (value <= prev)