]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ocfs2: Remove masklog ML_EXTENT_MAP.
authorTao Ma <boyu.mt@taobao.com>
Tue, 22 Feb 2011 14:27:33 +0000 (22:27 +0800)
committerTao Ma <boyu.mt@taobao.com>
Tue, 22 Feb 2011 14:27:33 +0000 (22:27 +0800)
Remove mlog(0) from fs/ocfs2/extent_map.c and the masklog EXTENT_MAP.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
fs/ocfs2/cluster/masklog.c
fs/ocfs2/cluster/masklog.h
fs/ocfs2/extent_map.c
fs/ocfs2/ocfs2_trace.h

index e18fb801633eaf5d9378e1b438bd171b149d1fa4..c5ba4373d8638cdb691d7ab0c1bd415de2ef0c2e 100644 (file)
@@ -94,7 +94,6 @@ static struct mlog_attribute mlog_attrs[MLOG_MAX_BITS] = {
        define_mask(AIO),
        define_mask(JOURNAL),
        define_mask(SUPER),
-       define_mask(EXTENT_MAP),
        define_mask(DLM_GLUE),
        define_mask(BH_IO),
        define_mask(UPTODATE),
index b76d077861077a59bf7c6ededd187e45e6cc1eb2..e4ca487078b32ab6bebcd43fb472b4653c36d2fd 100644 (file)
@@ -96,7 +96,6 @@
 #define ML_AIO         0x0000000000002000ULL /* ocfs2 aio read and write */
 #define ML_JOURNAL     0x0000000000004000ULL /* ocfs2 journalling functions */
 #define ML_SUPER       0x0000000000010000ULL /* ocfs2 mount / umount */
-#define ML_EXTENT_MAP  0x0000000000040000ULL /* ocfs2 extent map caching */
 #define ML_DLM_GLUE    0x0000000000080000ULL /* ocfs2 dlm glue layer */
 #define ML_BH_IO       0x0000000000100000ULL /* ocfs2 buffer I/O */
 #define ML_UPTODATE    0x0000000000200000ULL /* ocfs2 caching sequence #'s */
index 7d74d176706a43492863d6fbc4bb20e7a24c80e8..23457b491e8ce53ac5b71d9cd5fc2a5e1400a07f 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/types.h>
 #include <linux/fiemap.h>
 
-#define MLOG_MASK_PREFIX ML_EXTENT_MAP
 #include <cluster/masklog.h>
 
 #include "ocfs2.h"
@@ -39,6 +38,7 @@
 #include "inode.h"
 #include "super.h"
 #include "symlink.h"
+#include "ocfs2_trace.h"
 
 #include "buffer_head_io.h"
 
@@ -841,8 +841,7 @@ int ocfs2_read_virt_blocks(struct inode *inode, u64 v_block, int nr,
        u64 p_block, p_count;
        int i, count, done = 0;
 
-       mlog(0, "(inode = %p, v_block = %llu, nr = %d, bhs = %p, "
-            "flags = %x, validate = %p)\n",
+       trace_ocfs2_read_virt_blocks(
             inode, (unsigned long long)v_block, nr, bhs, flags,
             validate);
 
index 052057a01ea8d31cb54483f4b23f4f1bdccb22a5..a7938505227b9e86e0124d016e029bc1b4542b69 100644 (file)
@@ -1490,6 +1490,35 @@ TRACE_EVENT(ocfs2_inode_revalidate,
 DEFINE_OCFS2_ULL_EVENT(ocfs2_mark_inode_dirty);
 
 /* End of trace events for fs/ocfs2/inode.c. */
+
+/* Trace events for fs/ocfs2/extent_map.c. */
+
+TRACE_EVENT(ocfs2_read_virt_blocks,
+       TP_PROTO(void *inode, unsigned long long vblock, int nr,
+                void *bhs, unsigned int flags, void *validate),
+       TP_ARGS(inode, vblock, nr, bhs, flags, validate),
+       TP_STRUCT__entry(
+               __field(void *, inode)
+               __field(unsigned long long, vblock)
+               __field(int, nr)
+               __field(void *, bhs)
+               __field(unsigned int, flags)
+               __field(void *, validate)
+       ),
+       TP_fast_assign(
+               __entry->inode = inode;
+               __entry->vblock = vblock;
+               __entry->nr = nr;
+               __entry->bhs = bhs;
+               __entry->flags = flags;
+               __entry->validate = validate;
+       ),
+       TP_printk("%p %llu %d %p %x %p", __entry->inode, __entry->vblock,
+                 __entry->nr, __entry->bhs, __entry->flags, __entry->validate)
+);
+
+/* End of trace events for fs/ocfs2/extent_map.c. */
+
 #endif /* _TRACE_OCFS2_H */
 
 /* This part must be outside protection */