ext4: Use tracepoints for mb_history trace file
authorTheodore Ts'o <tytso@mit.edu>
Wed, 30 Sep 2009 04:32:42 +0000 (00:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 30 Sep 2009 04:32:42 +0000 (00:32 -0400)
commit296c355cd6443d89fa251885a8d78778fe111dc4
tree5cf7c8b115617dc3829a16a5969894d37b73173c
parent90576c0b9a0b5323fc4bd7f23f49be0d234f36d1
ext4: Use tracepoints for mb_history trace file

The /proc/fs/ext4/<dev>/mb_history was maintained manually, and had a
number of problems: it required a largish amount of memory to be
allocated for each ext4 filesystem, and the s_mb_history_lock
introduced a CPU contention problem.

By ripping out the mb_history code and replacing it with ftrace
tracepoints, and we get more functionality: timestamps, event
filtering, the ability to correlate mballoc history with other ext4
tracepoints, etc.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Documentation/filesystems/proc.txt
fs/ext4/ext4.h
fs/ext4/mballoc.c
fs/ext4/mballoc.h
fs/ext4/super.c
include/trace/events/ext4.h