diff mbox

resize2fs: calculate minimal fs size only once

Message ID 1252048959-7936-1-git-send-email-bergwolf@gmail.com
State Accepted, archived
Headers show

Commit Message

Peng Tao Sept. 4, 2009, 7:22 a.m. UTC
When running resize2fs -M, no need to recalculate the minimal fs size.

Signed-off-by: "Peng Tao" <bergwolf@gmail.com>
---
 resize/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Theodore Ts'o Sept. 7, 2009, 6:21 p.m. UTC | #1
On Fri, Sep 04, 2009 at 03:22:39PM +0800, Peng Tao wrote:
> When running resize2fs -M, no need to recalculate the minimal fs size.
> 
> Signed-off-by: "Peng Tao" <bergwolf@gmail.com>

Applied to the maint branch, thanks.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/resize/main.c b/resize/main.c
index c6cbb5e..220c192 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);