summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2009-09-04 15:22:39 +0800
committerTheodore Ts'o <tytso@mit.edu>2009-09-07 14:20:52 -0400
commit1d8af189bd3762c09175ff4d9b6cdd98fe8c8150 (patch)
tree549afe28fdcf4e959db5b0cd086d9f1e2767d19a
parent0b5b9f90eec5cb383c660fe10ef2c88193e80fe7 (diff)
downloade2fsprogs-1d8af189bd3762c09175ff4d9b6cdd98fe8c8150.tar.gz
resize2fs: calculate minimal fs size only once
When running resize2fs -M, no need to recalculate the minimal fs size. Signed-off-by: "Peng Tao" <bergwolf@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--resize/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resize/main.c b/resize/main.c
index c6cbb5e8..220c192e 100644
--- a/resize/main.c
+++ b/resize/main.c
@@ -375,7 +375,7 @@ int main (int argc, char ** argv)
exit(1);
}
if (force_min_size)
- new_size = calculate_minimum_resize_size(fs);
+ new_size = min_size;
else if (new_size_str) {
new_size = parse_num_blocks(new_size_str,
fs->super->s_log_block_size);