diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-09-29 15:51:30 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-09-29 15:51:30 -0400 |
commit | 90576c0b9a0b5323fc4bd7f23f49be0d234f36d1 (patch) | |
tree | d4a1ab6f923f1c9c7c87f13a828db72c1f4412c1 /fs/ext4/extents.c | |
parent | d3d1faf6a74496ea4435fd057c6a2cad49f3e523 (diff) |
ext4, jbd2: Drop unneeded printks at mount and unmount time
There are a number of kernel printk's which are printed when an ext4
filesystem is mounted and unmounted. Disable them to economize space
in the system logs. In addition, disabling the mballoc stats by
default saves a number of unneeded atomic operations for every block
allocation or deallocation.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 10a63096a95a..10539e364283 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -2380,6 +2380,7 @@ void ext4_ext_init(struct super_block *sb) | |||
2380 | */ | 2380 | */ |
2381 | 2381 | ||
2382 | if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) { | 2382 | if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) { |
2383 | #if defined(AGGRESSIVE_TEST) || defined(CHECK_BINSEARCH) || defined(EXTENTS_STATS) | ||
2383 | printk(KERN_INFO "EXT4-fs: file extents enabled"); | 2384 | printk(KERN_INFO "EXT4-fs: file extents enabled"); |
2384 | #ifdef AGGRESSIVE_TEST | 2385 | #ifdef AGGRESSIVE_TEST |
2385 | printk(", aggressive tests"); | 2386 | printk(", aggressive tests"); |
@@ -2391,6 +2392,7 @@ void ext4_ext_init(struct super_block *sb) | |||
2391 | printk(", stats"); | 2392 | printk(", stats"); |
2392 | #endif | 2393 | #endif |
2393 | printk("\n"); | 2394 | printk("\n"); |
2395 | #endif | ||
2394 | #ifdef EXTENTS_STATS | 2396 | #ifdef EXTENTS_STATS |
2395 | spin_lock_init(&EXT4_SB(sb)->s_ext_stats_lock); | 2397 | spin_lock_init(&EXT4_SB(sb)->s_ext_stats_lock); |
2396 | EXT4_SB(sb)->s_ext_min = 1 << 30; | 2398 | EXT4_SB(sb)->s_ext_min = 1 << 30; |