]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/ext4/super.c
ext4: don't use ext4_error in ext4_check_descriptors
authorJosef Bacik <jbacik@redhat.com>
Wed, 30 Apr 2008 02:00:28 +0000 (22:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 30 Apr 2008 02:00:28 +0000 (22:00 -0400)
commitc19204b0ae3f8a125118fd5d425d3c7a5f8fda9b
treebca9e898c7a66315ffd2551acb52e2db4ec94c3b
parent8753e88f1b4345677620ec68f847222a6301e2fd
ext4: don't use ext4_error in ext4_check_descriptors

Because ext4_check_descriptors is called at mount time you can't use ext4_error
as it calls ext4_commit_sb, which since the sb isn't all the way initialized
causes bad things to happen (ie a panic).  This patch changes the ext4_error's
to printk's to keep this problem from happening.  Thanks much,

Signed-off-by: Josef Bacik <jbacik@redhat.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c