From b1503c446a9cd3041c94945df7a9772e812dbd21 Mon Sep 17 00:00:00 2001 From: Kazuya Mio Date: Mon, 18 Apr 2011 20:11:34 +0000 Subject: [PATCH] e2fsprogs: Unify the upper limit of reserved blocks count In e2fsprogs, the upper limit of reserved blocks count is a half of filesystem's blocks count. This patch fixes the incorrect checks of reserved blocks count. Signed-off-by: Kazuya Mio Signed-off-by: Theodore Ts'o --- misc/tune2fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tune2fs.c b/misc/tune2fs.c index e5722a5a5..9d2b12cc2 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -1715,7 +1715,7 @@ retry_open: reserved_ratio, sb->s_r_blocks_count); } if (r_flag) { - if (reserved_blocks >= sb->s_blocks_count/2) { + if (reserved_blocks > sb->s_blocks_count/2) { com_err(program_name, 0, _("reserved blocks count is too big (%lu)"), reserved_blocks); -- 2.47.2