diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-02-22 09:27:33 -0500 |
---|---|---|
committer | Tao Ma <boyu.mt@taobao.com> | 2011-02-22 09:27:33 -0500 |
commit | a716357c47ea1cc4f535356cff2c39edd327136b (patch) | |
tree | 132f3e6114aac821e42f75e74ac92fe3e138ba5a /fs/ocfs2 | |
parent | 64f3b2692724fdbe72697b77887685b5bd3f4a3c (diff) |
ocfs2: Remove masklog ML_EXTENT_MAP.
Remove mlog(0) from fs/ocfs2/extent_map.c and the masklog EXTENT_MAP.
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/extent_map.c | 5 | ||||
-rw-r--r-- | fs/ocfs2/ocfs2_trace.h | 29 |
4 files changed, 31 insertions, 5 deletions
diff --git a/fs/ocfs2/cluster/masklog.c b/fs/ocfs2/cluster/masklog.c index e18fb801633e..c5ba4373d863 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(EXTENT_MAP), | ||
98 | define_mask(DLM_GLUE), | 97 | define_mask(DLM_GLUE), |
99 | define_mask(BH_IO), | 98 | define_mask(BH_IO), |
100 | define_mask(UPTODATE), | 99 | define_mask(UPTODATE), |
diff --git a/fs/ocfs2/cluster/masklog.h b/fs/ocfs2/cluster/masklog.h index b76d07786107..e4ca487078b3 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_EXTENT_MAP 0x0000000000040000ULL /* ocfs2 extent map caching */ | ||
100 | #define ML_DLM_GLUE 0x0000000000080000ULL /* ocfs2 dlm glue layer */ | 99 | #define ML_DLM_GLUE 0x0000000000080000ULL /* ocfs2 dlm glue layer */ |
101 | #define ML_BH_IO 0x0000000000100000ULL /* ocfs2 buffer I/O */ | 100 | #define ML_BH_IO 0x0000000000100000ULL /* ocfs2 buffer I/O */ |
102 | #define ML_UPTODATE 0x0000000000200000ULL /* ocfs2 caching sequence #'s */ | 101 | #define ML_UPTODATE 0x0000000000200000ULL /* ocfs2 caching sequence #'s */ |
diff --git a/fs/ocfs2/extent_map.c b/fs/ocfs2/extent_map.c index 7d74d176706a..23457b491e8c 100644 --- a/fs/ocfs2/extent_map.c +++ b/fs/ocfs2/extent_map.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/types.h> | 28 | #include <linux/types.h> |
29 | #include <linux/fiemap.h> | 29 | #include <linux/fiemap.h> |
30 | 30 | ||
31 | #define MLOG_MASK_PREFIX ML_EXTENT_MAP | ||
32 | #include <cluster/masklog.h> | 31 | #include <cluster/masklog.h> |
33 | 32 | ||
34 | #include "ocfs2.h" | 33 | #include "ocfs2.h" |
@@ -39,6 +38,7 @@ | |||
39 | #include "inode.h" | 38 | #include "inode.h" |
40 | #include "super.h" | 39 | #include "super.h" |
41 | #include "symlink.h" | 40 | #include "symlink.h" |
41 | #include "ocfs2_trace.h" | ||
42 | 42 | ||
43 | #include "buffer_head_io.h" | 43 | #include "buffer_head_io.h" |
44 | 44 | ||
@@ -841,8 +841,7 @@ int ocfs2_read_virt_blocks(struct inode *inode, u64 v_block, int nr, | |||
841 | u64 p_block, p_count; | 841 | u64 p_block, p_count; |
842 | int i, count, done = 0; | 842 | int i, count, done = 0; |
843 | 843 | ||
844 | mlog(0, "(inode = %p, v_block = %llu, nr = %d, bhs = %p, " | 844 | trace_ocfs2_read_virt_blocks( |
845 | "flags = %x, validate = %p)\n", | ||
846 | inode, (unsigned long long)v_block, nr, bhs, flags, | 845 | inode, (unsigned long long)v_block, nr, bhs, flags, |
847 | validate); | 846 | validate); |
848 | 847 | ||
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h index 052057a01ea8..a7938505227b 100644 --- a/fs/ocfs2/ocfs2_trace.h +++ b/fs/ocfs2/ocfs2_trace.h | |||
@@ -1490,6 +1490,35 @@ TRACE_EVENT(ocfs2_inode_revalidate, | |||
1490 | DEFINE_OCFS2_ULL_EVENT(ocfs2_mark_inode_dirty); | 1490 | DEFINE_OCFS2_ULL_EVENT(ocfs2_mark_inode_dirty); |
1491 | 1491 | ||
1492 | /* End of trace events for fs/ocfs2/inode.c. */ | 1492 | /* End of trace events for fs/ocfs2/inode.c. */ |
1493 | |||
1494 | /* Trace events for fs/ocfs2/extent_map.c. */ | ||
1495 | |||
1496 | TRACE_EVENT(ocfs2_read_virt_blocks, | ||
1497 | TP_PROTO(void *inode, unsigned long long vblock, int nr, | ||
1498 | void *bhs, unsigned int flags, void *validate), | ||
1499 | TP_ARGS(inode, vblock, nr, bhs, flags, validate), | ||
1500 | TP_STRUCT__entry( | ||
1501 | __field(void *, inode) | ||
1502 | __field(unsigned long long, vblock) | ||
1503 | __field(int, nr) | ||
1504 | __field(void *, bhs) | ||
1505 | __field(unsigned int, flags) | ||
1506 | __field(void *, validate) | ||
1507 | ), | ||
1508 | TP_fast_assign( | ||
1509 | __entry->inode = inode; | ||
1510 | __entry->vblock = vblock; | ||
1511 | __entry->nr = nr; | ||
1512 | __entry->bhs = bhs; | ||
1513 | __entry->flags = flags; | ||
1514 | __entry->validate = validate; | ||
1515 | ), | ||
1516 | TP_printk("%p %llu %d %p %x %p", __entry->inode, __entry->vblock, | ||
1517 | __entry->nr, __entry->bhs, __entry->flags, __entry->validate) | ||
1518 | ); | ||
1519 | |||
1520 | /* End of trace events for fs/ocfs2/extent_map.c. */ | ||
1521 | |||
1493 | #endif /* _TRACE_OCFS2_H */ | 1522 | #endif /* _TRACE_OCFS2_H */ |
1494 | 1523 | ||
1495 | /* This part must be outside protection */ | 1524 | /* This part must be outside protection */ |