Commit a8731086 authored by Tao Ma's avatar Tao Ma

ocfs2: Remove mlog(0) from fs/ocfs2/slot_map.c

This is the 1st step to remove the debug info of SUPER.
Signed-off-by: default avatarTao Ma <boyu.mt@taobao.com>
parent a716357c
...@@ -1519,6 +1519,17 @@ TRACE_EVENT(ocfs2_read_virt_blocks, ...@@ -1519,6 +1519,17 @@ TRACE_EVENT(ocfs2_read_virt_blocks,
/* End of trace events for fs/ocfs2/extent_map.c. */ /* End of trace events for fs/ocfs2/extent_map.c. */
/* Trace events for fs/ocfs2/slot_map.c. */
DEFINE_OCFS2_UINT_EVENT(ocfs2_refresh_slot_info);
DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_map_slot_buffers);
DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_map_slot_buffers_block);
DEFINE_OCFS2_INT_EVENT(ocfs2_find_slot);
/* End of trace events for fs/ocfs2/slot_map.c. */
#endif /* _TRACE_OCFS2_H */ #endif /* _TRACE_OCFS2_H */
/* This part must be outside protection */ /* This part must be outside protection */
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#define MLOG_MASK_PREFIX ML_SUPER
#include <cluster/masklog.h> #include <cluster/masklog.h>
#include "ocfs2.h" #include "ocfs2.h"
...@@ -39,6 +38,7 @@ ...@@ -39,6 +38,7 @@
#include "slot_map.h" #include "slot_map.h"
#include "super.h" #include "super.h"
#include "sysfile.h" #include "sysfile.h"
#include "ocfs2_trace.h"
#include "buffer_head_io.h" #include "buffer_head_io.h"
...@@ -142,8 +142,7 @@ int ocfs2_refresh_slot_info(struct ocfs2_super *osb) ...@@ -142,8 +142,7 @@ int ocfs2_refresh_slot_info(struct ocfs2_super *osb)
BUG_ON(si->si_blocks == 0); BUG_ON(si->si_blocks == 0);
BUG_ON(si->si_bh == NULL); BUG_ON(si->si_bh == NULL);
mlog(0, "Refreshing slot map, reading %u block(s)\n", trace_ocfs2_refresh_slot_info(si->si_blocks);
si->si_blocks);
/* /*
* We pass -1 as blocknr because we expect all of si->si_bh to * We pass -1 as blocknr because we expect all of si->si_bh to
...@@ -381,8 +380,7 @@ static int ocfs2_map_slot_buffers(struct ocfs2_super *osb, ...@@ -381,8 +380,7 @@ static int ocfs2_map_slot_buffers(struct ocfs2_super *osb,
/* The size checks above should ensure this */ /* The size checks above should ensure this */
BUG_ON((osb->max_slots / si->si_slots_per_block) > blocks); BUG_ON((osb->max_slots / si->si_slots_per_block) > blocks);
mlog(0, "Slot map needs %u buffers for %llu bytes\n", trace_ocfs2_map_slot_buffers(bytes, si->si_blocks);
si->si_blocks, bytes);
si->si_bh = kzalloc(sizeof(struct buffer_head *) * si->si_blocks, si->si_bh = kzalloc(sizeof(struct buffer_head *) * si->si_blocks,
GFP_KERNEL); GFP_KERNEL);
...@@ -400,8 +398,7 @@ static int ocfs2_map_slot_buffers(struct ocfs2_super *osb, ...@@ -400,8 +398,7 @@ static int ocfs2_map_slot_buffers(struct ocfs2_super *osb,
goto bail; goto bail;
} }
mlog(0, "Reading slot map block %u at %llu\n", i, trace_ocfs2_map_slot_buffers_block((unsigned long long)blkno, i);
(unsigned long long)blkno);
bh = NULL; /* Acquire a fresh bh */ bh = NULL; /* Acquire a fresh bh */
status = ocfs2_read_blocks(INODE_CACHE(si->si_inode), blkno, status = ocfs2_read_blocks(INODE_CACHE(si->si_inode), blkno,
...@@ -503,7 +500,7 @@ int ocfs2_find_slot(struct ocfs2_super *osb) ...@@ -503,7 +500,7 @@ int ocfs2_find_slot(struct ocfs2_super *osb)
osb->slot_num = slot; osb->slot_num = slot;
spin_unlock(&osb->osb_lock); spin_unlock(&osb->osb_lock);
mlog(0, "taking node slot %d\n", osb->slot_num); trace_ocfs2_find_slot(osb->slot_num);
status = ocfs2_update_disk_slot(osb, si, osb->slot_num); status = ocfs2_update_disk_slot(osb, si, osb->slot_num);
if (status < 0) if (status < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment