ext4: add ratelimiting to ext4 messages
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Oct 2013 01:11:01 +0000 (21:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Oct 2013 01:11:01 +0000 (21:11 -0400)
In the case of a storage device that suddenly disappears, or in the
case of significant file system corruption, this can result in a huge
flood of messages being sent to the console.  This can overflow the
file system containing /var/log/messages, or if a serial console is
configured, this can slow down the system so much that a hardware
watchdog can end up triggering forcing a system reboot.

Google-Bug-Id: 7258357

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/super.c

diff --cc fs/ext4/ext4.h
Simple merge
diff --cc fs/ext4/super.c
Simple merge