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 <k-mio@sx.jp.nec.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
bitmap-optimize
Kazuya Mio 2011-04-18 20:11:34 +00:00 committed by Theodore Ts'o
parent d568782ade
commit b1503c446a
1 changed files with 1 additions and 1 deletions

View File

@ -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);