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:
@@ -1673,13 +1673,6 @@ static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es,
|
||||
EXT4_INODES_PER_GROUP(sb),
|
||||
sbi->s_mount_opt);
|
||||
|
||||
if (EXT4_SB(sb)->s_journal) {
|
||||
ext4_msg(sb, KERN_INFO, "%s journal on %s",
|
||||
EXT4_SB(sb)->s_journal->j_inode ? "internal" :
|
||||
"external", EXT4_SB(sb)->s_journal->j_devname);
|
||||
} else {
|
||||
ext4_msg(sb, KERN_INFO, "no journal");
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -2885,12 +2878,12 @@ no_journal:
|
||||
"available");
|
||||
}
|
||||
|
||||
if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
|
||||
if (test_opt(sb, DELALLOC) &&
|
||||
(test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA)) {
|
||||
ext4_msg(sb, KERN_WARNING, "Ignoring delalloc option - "
|
||||
"requested data journaling mode");
|
||||
clear_opt(sbi->s_mount_opt, DELALLOC);
|
||||
} else if (test_opt(sb, DELALLOC))
|
||||
ext4_msg(sb, KERN_INFO, "delayed allocation enabled");
|
||||
}
|
||||
|
||||
err = ext4_setup_system_zone(sb);
|
||||
if (err) {
|
||||
@@ -3202,9 +3195,7 @@ static int ext4_load_journal(struct super_block *sb,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (journal->j_flags & JBD2_BARRIER)
|
||||
ext4_msg(sb, KERN_INFO, "barriers enabled");
|
||||
else
|
||||
if (!(journal->j_flags & JBD2_BARRIER))
|
||||
ext4_msg(sb, KERN_INFO, "barriers disabled");
|
||||
|
||||
if (!really_read_only && test_opt(sb, UPDATE_JOURNAL)) {
|
||||
|
Reference in New Issue
Block a user