]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: only create debugfs and stats entries if init is successful
authorDuane Griffin <duaneg@dghda.com>
Wed, 30 Apr 2008 02:02:47 +0000 (22:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 30 Apr 2008 02:02:47 +0000 (22:02 -0400)
commit20f9289486e2440278cda2e904c5d76a03acadc0
treeaa10ed1a0f8321ab91b68568a2a9ece4b74e51a3
parent4147a77979e4ca5e08bea99b8168cf8439c0a460
jbd2: only create debugfs and stats entries if init is successful

jbd2 debugfs and stats entries should only be created if cache initialisation
is successful.  At the moment they are being created unconditionally which
will leave them dangling if cache (and hence module) initialisation fails.

Signed-off-by: Duane Griffin <duaneg@dghda.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/journal.c