From: Peng Tao <bergwolf@gmail.com>
To: linux-ext4@vger.kernel.org
Cc: Theodore Ts'o <tytso@mit.edu>, "Peng Tao" <bergwolf@gmail.com>
Subject: [PATCH] resize2fs: calculate minimal fs size only once
Date: Fri, 4 Sep 2009 15:22:39 +0800 [thread overview]
Message-ID: <1252048959-7936-1-git-send-email-bergwolf@gmail.com> (raw)
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(-)
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);
--
1.6.4.2.446.gbd046
next reply other threads:[~2009-09-04 7:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-04 7:22 Peng Tao [this message]
2009-09-07 18:21 ` [PATCH] resize2fs: calculate minimal fs size only once Theodore Tso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1252048959-7936-1-git-send-email-bergwolf@gmail.com \
--to=bergwolf@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).