]> git.baikalelectronics.ru Git - kernel.git/commit
JBD2: debug code cleanup.
authorJose R. Santos <jrs@us.ibm.com>
Tue, 16 Oct 2007 22:38:25 +0000 (18:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 17 Oct 2007 22:49:59 +0000 (18:49 -0400)
commitbbb622d995466bfe9df59e06d7ef556296451115
tree6072107f72ef7849cc1abcdb69d04e6d56161ba2
parent3040f0d632da7658d5fb8f4ddb0fbd348f9e4189
JBD2: debug code cleanup.

Mostly stolen from akpm's JBD cleanup patch.

- use `#ifdef foo' instead of `#if defined(foo)'

- Make journal_enable_debug __read_mostly just for the heck of it

- Make jbd_debugfs_dir and jbd_debug static

- debugfs_remove(NULL) is legal: remove unneeded tests

- remove unnecessary empty loops

Signed-off-by: Jose R. Santos <jrs@us.ibm.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/jbd2/journal.c