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>
This commit is contained in:
@@ -2380,6 +2380,7 @@ void ext4_ext_init(struct super_block *sb)
|
||||
*/
|
||||
|
||||
if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) {
|
||||
#if defined(AGGRESSIVE_TEST) || defined(CHECK_BINSEARCH) || defined(EXTENTS_STATS)
|
||||
printk(KERN_INFO "EXT4-fs: file extents enabled");
|
||||
#ifdef AGGRESSIVE_TEST
|
||||
printk(", aggressive tests");
|
||||
@@ -2391,6 +2392,7 @@ void ext4_ext_init(struct super_block *sb)
|
||||
printk(", stats");
|
||||
#endif
|
||||
printk("\n");
|
||||
#endif
|
||||
#ifdef EXTENTS_STATS
|
||||
spin_lock_init(&EXT4_SB(sb)->s_ext_stats_lock);
|
||||
EXT4_SB(sb)->s_ext_min = 1 << 30;
|
||||
|
Reference in New Issue
Block a user