UBUNTU: SAUCE: vfs: Add a trace point in the mark_inode_dirty function
authorArjan van de Ven <arjan@linux.intel.com>
Sun, 25 Oct 2009 22:37:04 +0000 (15:37 -0700)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 28 Mar 2011 13:48:17 +0000 (06:48 -0700)
commit871e536d37f0cdc97ee5f5d2512a2e9558041b2e
tree616d540a5953a8d538b85f9651f1c0fd5dc0fc7f
parent90fd4a64964bfc34c4ac5a98cebfe8e3b36845f3
UBUNTU: SAUCE: vfs: Add a trace point in the mark_inode_dirty function

PowerTOP would like to be able to show who is keeping the disk
busy by dirtying data. The most logical spot for this is in the vfs
in the mark_inode_dirty() function. Doing this on the block level
is not possible because by the time the IO hits the block layer the
guilty party can no longer be found ("kjournald" and "pdflush" are not
useful answers to "who caused this file to be dirty).

The trace point follows the same logic/style as the block_dump code
and pretty much dumps the same data, just not to dmesg (and thus to
/var/log/messages) but via the trace events streams.

Note: This patch was posted to lkml and might potentially go into 2.6.33 but I
have not seen which maintainer will take it.

Signed-of-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Amit Kucheria <amit.kucheria@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
fs/fs-writeback.c
fs/inode.c
include/trace/events/vfs.h [new file with mode: 0644]