diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-02-22 08:59:46 -0500 |
---|---|---|
committer | Tao Ma <boyu.mt@taobao.com> | 2011-02-22 08:59:46 -0500 |
commit | 614a9e849ca6ea24843795251cb30af525d5336b (patch) | |
tree | bf1344ab1a0d932c997b4e7646d062c290c7cedd /fs/ocfs2 | |
parent | 9558156bcf8e4750d20034e941213273743ed86a (diff) |
ocfs2: Remove FILE_IO from masklog.
Change all the "mlog(0," in fs/ocfs2/mmap.c to trace events.
And finally remove masklog FILE_IO.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/cluster/masklog.c | 1 | ||||
-rw-r--r-- | fs/ocfs2/cluster/masklog.h | 1 | ||||
-rw-r--r-- | fs/ocfs2/mmap.c | 7 | ||||
-rw-r--r-- | fs/ocfs2/ocfs2_trace.h | 25 |
4 files changed, 28 insertions, 6 deletions
diff --git a/fs/ocfs2/cluster/masklog.c b/fs/ocfs2/cluster/masklog.c index a961cca12529..036e8b8814f7 100644 --- a/fs/ocfs2/cluster/masklog.c +++ b/fs/ocfs2/cluster/masklog.c | |||
@@ -94,7 +94,6 @@ static struct mlog_attribute mlog_attrs[MLOG_MAX_BITS] = { | |||
94 | define_mask(AIO), | 94 | define_mask(AIO), |
95 | define_mask(JOURNAL), | 95 | define_mask(JOURNAL), |
96 | define_mask(SUPER), | 96 | define_mask(SUPER), |
97 | define_mask(FILE_IO), | ||
98 | define_mask(EXTENT_MAP), | 97 | define_mask(EXTENT_MAP), |
99 | define_mask(DLM_GLUE), | 98 | define_mask(DLM_GLUE), |
100 | define_mask(BH_IO), | 99 | define_mask(BH_IO), |
diff --git a/fs/ocfs2/cluster/masklog.h b/fs/ocfs2/cluster/masklog.h index 845ea2b02f0b..d07780ab9f8f 100644 --- a/fs/ocfs2/cluster/masklog.h +++ b/fs/ocfs2/cluster/masklog.h | |||
@@ -96,7 +96,6 @@ | |||
96 | #define ML_AIO 0x0000000000002000ULL /* ocfs2 aio read and write */ | 96 | #define ML_AIO 0x0000000000002000ULL /* ocfs2 aio read and write */ |
97 | #define ML_JOURNAL 0x0000000000004000ULL /* ocfs2 journalling functions */ | 97 | #define ML_JOURNAL 0x0000000000004000ULL /* ocfs2 journalling functions */ |
98 | #define ML_SUPER 0x0000000000010000ULL /* ocfs2 mount / umount */ | 98 | #define ML_SUPER 0x0000000000010000ULL /* ocfs2 mount / umount */ |
99 | #define ML_FILE_IO 0x0000000000020000ULL /* ocfs2 file I/O */ | ||
100 | #define ML_EXTENT_MAP 0x0000000000040000ULL /* ocfs2 extent map caching */ | 99 | #define ML_EXTENT_MAP 0x0000000000040000ULL /* ocfs2 extent map caching */ |
101 | #define ML_DLM_GLUE 0x0000000000080000ULL /* ocfs2 dlm glue layer */ | 100 | #define ML_DLM_GLUE 0x0000000000080000ULL /* ocfs2 dlm glue layer */ |
102 | #define ML_BH_IO 0x0000000000100000ULL /* ocfs2 buffer I/O */ | 101 | #define ML_BH_IO 0x0000000000100000ULL /* ocfs2 buffer I/O */ |
diff --git a/fs/ocfs2/mmap.c b/fs/ocfs2/mmap.c index 49730b51ae45..3e9393ca39eb 100644 --- a/fs/ocfs2/mmap.c +++ b/fs/ocfs2/mmap.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/signal.h> | 31 | #include <linux/signal.h> |
32 | #include <linux/rbtree.h> | 32 | #include <linux/rbtree.h> |
33 | 33 | ||
34 | #define MLOG_MASK_PREFIX ML_FILE_IO | ||
35 | #include <cluster/masklog.h> | 34 | #include <cluster/masklog.h> |
36 | 35 | ||
37 | #include "ocfs2.h" | 36 | #include "ocfs2.h" |
@@ -42,6 +41,7 @@ | |||
42 | #include "inode.h" | 41 | #include "inode.h" |
43 | #include "mmap.h" | 42 | #include "mmap.h" |
44 | #include "super.h" | 43 | #include "super.h" |
44 | #include "ocfs2_trace.h" | ||
45 | 45 | ||
46 | 46 | ||
47 | static int ocfs2_fault(struct vm_area_struct *area, struct vm_fault *vmf) | 47 | static int ocfs2_fault(struct vm_area_struct *area, struct vm_fault *vmf) |
@@ -49,13 +49,12 @@ static int ocfs2_fault(struct vm_area_struct *area, struct vm_fault *vmf) | |||
49 | sigset_t oldset; | 49 | sigset_t oldset; |
50 | int ret; | 50 | int ret; |
51 | 51 | ||
52 | mlog(0, "(area=%p, page offset=%lu)\n", area, vmf->pgoff); | ||
53 | |||
54 | ocfs2_block_signals(&oldset); | 52 | ocfs2_block_signals(&oldset); |
55 | ret = filemap_fault(area, vmf); | 53 | ret = filemap_fault(area, vmf); |
56 | ocfs2_unblock_signals(&oldset); | 54 | ocfs2_unblock_signals(&oldset); |
57 | 55 | ||
58 | mlog(0, "%p\n", vmf->page); | 56 | trace_ocfs2_fault(OCFS2_I(area->vm_file->f_mapping->host)->ip_blkno, |
57 | area, vmf->page, vmf->pgoff); | ||
59 | return ret; | 58 | return ret; |
60 | } | 59 | } |
61 | 60 | ||
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h index 5958da57f8ff..77148e7a14f8 100644 --- a/fs/ocfs2/ocfs2_trace.h +++ b/fs/ocfs2/ocfs2_trace.h | |||
@@ -1092,6 +1092,31 @@ TRACE_EVENT(ocfs2_write_end_inline, | |||
1092 | ); | 1092 | ); |
1093 | 1093 | ||
1094 | /* End of trace events for fs/ocfs2/aops.c. */ | 1094 | /* End of trace events for fs/ocfs2/aops.c. */ |
1095 | |||
1096 | /* Trace events for fs/ocfs2/mmap.c. */ | ||
1097 | |||
1098 | TRACE_EVENT(ocfs2_fault, | ||
1099 | TP_PROTO(unsigned long long ino, | ||
1100 | void *area, void *page, unsigned long pgoff), | ||
1101 | TP_ARGS(ino, area, page, pgoff), | ||
1102 | TP_STRUCT__entry( | ||
1103 | __field(unsigned long long, ino) | ||
1104 | __field(void *, area) | ||
1105 | __field(void *, page) | ||
1106 | __field(unsigned long, pgoff) | ||
1107 | ), | ||
1108 | TP_fast_assign( | ||
1109 | __entry->ino = ino; | ||
1110 | __entry->area = area; | ||
1111 | __entry->page = page; | ||
1112 | __entry->pgoff = pgoff; | ||
1113 | ), | ||
1114 | TP_printk("%llu %p %p %lu", | ||
1115 | __entry->ino, __entry->area, __entry->page, __entry->pgoff) | ||
1116 | ); | ||
1117 | |||
1118 | /* End of trace events for fs/ocfs2/mmap.c. */ | ||
1119 | |||
1095 | #endif /* _TRACE_OCFS2_H */ | 1120 | #endif /* _TRACE_OCFS2_H */ |
1096 | 1121 | ||
1097 | /* This part must be outside protection */ | 1122 | /* This part must be outside protection */ |