]> git.hungrycats.org Git - linux/commitdiff
ext4: Fix include/trace/events/ext4.h to work with Systemtap
authorTheodore Ts'o <tytso@mit.edu>
Tue, 15 Sep 2009 02:59:50 +0000 (22:59 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:06:41 +0000 (08:06 -0800)
(cherry picked from commit 3661d28615ea580c1db02a972fd4d3898df1cb01)

Using relative pathnames in #include statements interacts badly with
SystemTap, since the fs/ext4/*.h header files are not packaged up as
part of a distribution kernel's header files.  Since systemtap doesn't
use TP_fast_assign(), we can use a blind structure definition and then
make sure the needed header files are defined before the ext4 source
files #include the trace/events/ext4.h header file.

https://bugzilla.redhat.com/show_bug.cgi?id=512478

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/super.c
include/trace/events/ext4.h

index 655cca69b1ec4c25c910a71f9273da83b9d42db9..3f671c7eb39197fe74c0f8897b9fe52d624758f1 100644 (file)
@@ -45,6 +45,7 @@
 #include "ext4_jbd2.h"
 #include "xattr.h"
 #include "acl.h"
+#include "mballoc.h"
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/ext4.h>
index 7d8b5bc741857401acf0ee81f8eaa9b98b52c1cd..718b0d9293ed7c1304c67513a77d43fcf4fbaf65 100644 (file)
@@ -5,10 +5,12 @@
 #define _TRACE_EXT4_H
 
 #include <linux/writeback.h>
-#include "../../../fs/ext4/ext4.h"
-#include "../../../fs/ext4/mballoc.h"
 #include <linux/tracepoint.h>
 
+struct ext4_allocation_context;
+struct ext4_allocation_request;
+struct ext4_prealloc_space;
+
 TRACE_EVENT(ext4_free_inode,
        TP_PROTO(struct inode *inode),