From 1d8af189bd3762c09175ff4d9b6cdd98fe8c8150 Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Fri, 4 Sep 2009 15:22:39 +0800 Subject: resize2fs: calculate minimal fs size only once When running resize2fs -M, no need to recalculate the minimal fs size. Signed-off-by: "Peng Tao" Signed-off-by: Theodore Ts'o --- resize/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resize') 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); -- cgit v1.2.3