Commit 38877a43 authored by Tao Ma's avatar Tao Ma

ocfs2: Remove mlog(0) from quota_local.c.

Remove mlog(0) from fs/ocfs2/quota_local.c.
Signed-off-by: default avatarTao Ma <boyu.mt@taobao.com>
parent 2661836e
...@@ -1925,6 +1925,16 @@ TRACE_EVENT(ocfs2_resmap_claimed_bits_end, ...@@ -1925,6 +1925,16 @@ TRACE_EVENT(ocfs2_resmap_claimed_bits_end,
); );
/* End of trace events for fs/ocfs2/reservations.c. */ /* End of trace events for fs/ocfs2/reservations.c. */
/* Trace events for fs/ocfs2/quota_local.c. */
DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_recover_local_quota_file);
DEFINE_OCFS2_INT_EVENT(ocfs2_finish_quota_recovery);
DEFINE_OCFS2_ULL_ULL_UINT_EVENT(olq_set_dquot);
/* End of trace events for fs/ocfs2/quota_local.c. */
#endif /* _TRACE_OCFS2_H */ #endif /* _TRACE_OCFS2_H */
/* This part must be outside protection */ /* This part must be outside protection */
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include <linux/quotaops.h> #include <linux/quotaops.h>
#include <linux/module.h> #include <linux/module.h>
#define MLOG_MASK_PREFIX ML_QUOTA
#include <cluster/masklog.h> #include <cluster/masklog.h>
#include "ocfs2_fs.h" #include "ocfs2_fs.h"
...@@ -23,6 +22,7 @@ ...@@ -23,6 +22,7 @@
#include "quota.h" #include "quota.h"
#include "uptodate.h" #include "uptodate.h"
#include "super.h" #include "super.h"
#include "ocfs2_trace.h"
/* Number of local quota structures per block */ /* Number of local quota structures per block */
static inline unsigned int ol_quota_entries_per_block(struct super_block *sb) static inline unsigned int ol_quota_entries_per_block(struct super_block *sb)
...@@ -475,7 +475,7 @@ static int ocfs2_recover_local_quota_file(struct inode *lqinode, ...@@ -475,7 +475,7 @@ static int ocfs2_recover_local_quota_file(struct inode *lqinode,
struct ocfs2_recovery_chunk *rchunk, *next; struct ocfs2_recovery_chunk *rchunk, *next;
qsize_t spacechange, inodechange; qsize_t spacechange, inodechange;
mlog(0, "ino=%lu type=%u", (unsigned long)lqinode->i_ino, type); trace_ocfs2_recover_local_quota_file((unsigned long)lqinode->i_ino, type);
list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) { list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) {
chunk = rchunk->rc_chunk; chunk = rchunk->rc_chunk;
...@@ -601,7 +601,7 @@ int ocfs2_finish_quota_recovery(struct ocfs2_super *osb, ...@@ -601,7 +601,7 @@ int ocfs2_finish_quota_recovery(struct ocfs2_super *osb,
for (type = 0; type < MAXQUOTAS; type++) { for (type = 0; type < MAXQUOTAS; type++) {
if (list_empty(&(rec->r_list[type]))) if (list_empty(&(rec->r_list[type])))
continue; continue;
mlog(0, "Recovering quota in slot %d\n", slot_num); trace_ocfs2_finish_quota_recovery(slot_num);
lqinode = ocfs2_get_system_file_inode(osb, ino[type], slot_num); lqinode = ocfs2_get_system_file_inode(osb, ino[type], slot_num);
if (!lqinode) { if (!lqinode) {
status = -ENOENT; status = -ENOENT;
...@@ -883,9 +883,10 @@ static void olq_set_dquot(struct buffer_head *bh, void *private) ...@@ -883,9 +883,10 @@ static void olq_set_dquot(struct buffer_head *bh, void *private)
dqblk->dqb_inodemod = cpu_to_le64(od->dq_dquot.dq_dqb.dqb_curinodes - dqblk->dqb_inodemod = cpu_to_le64(od->dq_dquot.dq_dqb.dqb_curinodes -
od->dq_originodes); od->dq_originodes);
spin_unlock(&dq_data_lock); spin_unlock(&dq_data_lock);
mlog(0, "Writing local dquot %u space %lld inodes %lld\n", trace_olq_set_dquot(
od->dq_dquot.dq_id, (long long)le64_to_cpu(dqblk->dqb_spacemod), (unsigned long long)le64_to_cpu(dqblk->dqb_spacemod),
(long long)le64_to_cpu(dqblk->dqb_inodemod)); (unsigned long long)le64_to_cpu(dqblk->dqb_inodemod),
od->dq_dquot.dq_id);
} }
/* Write dquot to local quota file */ /* Write dquot to local quota file */
......
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