]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't warn about mnt_count if it has been disabled
authorTao Ma <boyu.mt@taobao.com>
Wed, 18 May 2011 17:29:57 +0000 (13:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 May 2011 17:29:57 +0000 (13:29 -0400)
commitbd050c63372b8f490b6f26bcb10b0bbdba8b5163
treeebed56d680e8d79842b0c3077f11cbc237faa19f
parent12bcfed014d6b2d82496e489cb450c86904006c6
ext4: don't warn about mnt_count if it has been disabled

Currently, if we mkfs a new ext4 volume with s_max_mnt_count set to
zero, and mount it for the first time, we will get the warning:

maximal mount count reached, running e2fsck is recommended

It is really misleading. So change the check so that it won't warn in
that case.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c