revert "resize2fs: fix overly-pessimistic calculation of minimum size required"
resize2fs: fix overly-pessimistic calculation of minimum size required
For extent-mapped file systems, we need to reserve some extra space in
case we need to grow the extent tree. Calculate the safety margin
more intelligently, so we don't overestimate the amount of space
required.
(https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=
b4f30fcfe66c76a95689b9a39c229cef2446b385)
This patch increased start block for reserving margin
so it sometimes failed to resize when filesystem is very small.
(error message - resize2fs: No space left on device while trying to
resize csc.img)
Therefore, it is only available in the extent-mapped file system.
We can't use this patch.
Change-Id: I5783fe33dd000717828a361ecb628d5750b39940
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>