Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c45229d authored by Tanya Brokhman's avatar Tanya Brokhman
Browse files

ext4: limit the number of error prints



Use printk_ratelimit instead so as to avoid large number of prints
from the EXT4 in case of error.

CRs-Fixed: 670849
Change-Id: I6768cc5da79ee792ff17c2039c4cbfa813a27276
Signed-off-by: default avatarTanya Brokhman <tlinder@codeaurora.org>
parent 593d5a19
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -437,12 +437,14 @@ void ext4_error_inode(struct inode *inode, const char *function,
	vaf.fmt = fmt;
	vaf.va = &args;
	if (block)
		printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: "
		printk_ratelimited(
			KERN_CRIT "EXT4-fs error (device %s): %s:%d: "
		       "inode #%lu: block %llu: comm %s: %pV\n",
		       inode->i_sb->s_id, function, line, inode->i_ino,
		       block, current->comm, &vaf);
	else
		printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: "
		printk_ratelimited(
			KERN_CRIT "EXT4-fs error (device %s): %s:%d: "
		       "inode #%lu: comm %s: %pV\n",
		       inode->i_sb->s_id, function, line, inode->i_ino,
		       current->comm, &vaf);