diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-02-23 09:19:12 -0500 |
---|---|---|
committer | Tao Ma <boyu.mt@taobao.com> | 2011-02-23 09:19:12 -0500 |
commit | 1db986a839d8acf8ad809c876f1154f2e672d3af (patch) | |
tree | 76c68953717ec0e876303a8ce01fb6888d4f4a25 /fs/ocfs2/quota_global.c | |
parent | 38877a43795d3a834fad827f3d6532ff649e5c45 (diff) |
ocfs2: Remove masklog ML_QUOTA.
Remove mlog(0) from fs/ocfs2/quota_global.c and
the masklog QUOTA.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/quota_global.c')
-rw-r--r-- | fs/ocfs2/quota_global.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c index 10a49e8a5f03..64346f836c09 100644 --- a/fs/ocfs2/quota_global.c +++ b/fs/ocfs2/quota_global.c | |||
@@ -11,7 +11,6 @@ | |||
11 | #include <linux/writeback.h> | 11 | #include <linux/writeback.h> |
12 | #include <linux/workqueue.h> | 12 | #include <linux/workqueue.h> |
13 | 13 | ||
14 | #define MLOG_MASK_PREFIX ML_QUOTA | ||
15 | #include <cluster/masklog.h> | 14 | #include <cluster/masklog.h> |
16 | 15 | ||
17 | #include "ocfs2_fs.h" | 16 | #include "ocfs2_fs.h" |
@@ -27,6 +26,7 @@ | |||
27 | #include "super.h" | 26 | #include "super.h" |
28 | #include "buffer_head_io.h" | 27 | #include "buffer_head_io.h" |
29 | #include "quota.h" | 28 | #include "quota.h" |
29 | #include "ocfs2_trace.h" | ||
30 | 30 | ||
31 | /* | 31 | /* |
32 | * Locking of quotas with OCFS2 is rather complex. Here are rules that | 32 | * Locking of quotas with OCFS2 is rather complex. Here are rules that |
@@ -132,8 +132,7 @@ int ocfs2_validate_quota_block(struct super_block *sb, struct buffer_head *bh) | |||
132 | struct ocfs2_disk_dqtrailer *dqt = | 132 | struct ocfs2_disk_dqtrailer *dqt = |
133 | ocfs2_block_dqtrailer(sb->s_blocksize, bh->b_data); | 133 | ocfs2_block_dqtrailer(sb->s_blocksize, bh->b_data); |
134 | 134 | ||
135 | mlog(0, "Validating quota block %llu\n", | 135 | trace_ocfs2_validate_quota_block((unsigned long long)bh->b_blocknr); |
136 | (unsigned long long)bh->b_blocknr); | ||
137 | 136 | ||
138 | BUG_ON(!buffer_uptodate(bh)); | 137 | BUG_ON(!buffer_uptodate(bh)); |
139 | 138 | ||
@@ -509,9 +508,10 @@ int __ocfs2_sync_dquot(struct dquot *dquot, int freeing) | |||
509 | olditime = dquot->dq_dqb.dqb_itime; | 508 | olditime = dquot->dq_dqb.dqb_itime; |
510 | oldbtime = dquot->dq_dqb.dqb_btime; | 509 | oldbtime = dquot->dq_dqb.dqb_btime; |
511 | ocfs2_global_disk2memdqb(dquot, &dqblk); | 510 | ocfs2_global_disk2memdqb(dquot, &dqblk); |
512 | mlog(0, "Syncing global dquot %u space %lld+%lld, inodes %lld+%lld\n", | 511 | trace_ocfs2_sync_dquot(dquot->dq_id, dquot->dq_dqb.dqb_curspace, |
513 | dquot->dq_id, dquot->dq_dqb.dqb_curspace, (long long)spacechange, | 512 | (long long)spacechange, |
514 | dquot->dq_dqb.dqb_curinodes, (long long)inodechange); | 513 | dquot->dq_dqb.dqb_curinodes, |
514 | (long long)inodechange); | ||
515 | if (!test_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot->dq_flags)) | 515 | if (!test_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot->dq_flags)) |
516 | dquot->dq_dqb.dqb_curspace += spacechange; | 516 | dquot->dq_dqb.dqb_curspace += spacechange; |
517 | if (!test_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags)) | 517 | if (!test_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags)) |
@@ -595,8 +595,8 @@ static int ocfs2_sync_dquot_helper(struct dquot *dquot, unsigned long type) | |||
595 | struct ocfs2_super *osb = OCFS2_SB(sb); | 595 | struct ocfs2_super *osb = OCFS2_SB(sb); |
596 | int status = 0; | 596 | int status = 0; |
597 | 597 | ||
598 | mlog(0, "id=%u qtype=%u type=%lu device=%s\n", dquot->dq_id, | 598 | trace_ocfs2_sync_dquot_helper(dquot->dq_id, dquot->dq_type, |
599 | dquot->dq_type, type, sb->s_id); | 599 | type, sb->s_id); |
600 | if (type != dquot->dq_type) | 600 | if (type != dquot->dq_type) |
601 | goto out; | 601 | goto out; |
602 | status = ocfs2_lock_global_qf(oinfo, 1); | 602 | status = ocfs2_lock_global_qf(oinfo, 1); |
@@ -647,7 +647,7 @@ static int ocfs2_write_dquot(struct dquot *dquot) | |||
647 | struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); | 647 | struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); |
648 | int status = 0; | 648 | int status = 0; |
649 | 649 | ||
650 | mlog(0, "id=%u, type=%d", dquot->dq_id, dquot->dq_type); | 650 | trace_ocfs2_write_dquot(dquot->dq_id, dquot->dq_type); |
651 | 651 | ||
652 | handle = ocfs2_start_trans(osb, OCFS2_QWRITE_CREDITS); | 652 | handle = ocfs2_start_trans(osb, OCFS2_QWRITE_CREDITS); |
653 | if (IS_ERR(handle)) { | 653 | if (IS_ERR(handle)) { |
@@ -685,7 +685,7 @@ static int ocfs2_release_dquot(struct dquot *dquot) | |||
685 | struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); | 685 | struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); |
686 | int status = 0; | 686 | int status = 0; |
687 | 687 | ||
688 | mlog(0, "id=%u, type=%d", dquot->dq_id, dquot->dq_type); | 688 | trace_ocfs2_release_dquot(dquot->dq_id, dquot->dq_type); |
689 | 689 | ||
690 | mutex_lock(&dquot->dq_lock); | 690 | mutex_lock(&dquot->dq_lock); |
691 | /* Check whether we are not racing with some other dqget() */ | 691 | /* Check whether we are not racing with some other dqget() */ |
@@ -743,7 +743,7 @@ static int ocfs2_acquire_dquot(struct dquot *dquot) | |||
743 | int need_alloc = ocfs2_global_qinit_alloc(sb, type); | 743 | int need_alloc = ocfs2_global_qinit_alloc(sb, type); |
744 | handle_t *handle; | 744 | handle_t *handle; |
745 | 745 | ||
746 | mlog(0, "id=%u, type=%d", dquot->dq_id, type); | 746 | trace_ocfs2_acquire_dquot(dquot->dq_id, type); |
747 | mutex_lock(&dquot->dq_lock); | 747 | mutex_lock(&dquot->dq_lock); |
748 | /* | 748 | /* |
749 | * We need an exclusive lock, because we're going to update use count | 749 | * We need an exclusive lock, because we're going to update use count |
@@ -830,7 +830,7 @@ static int ocfs2_mark_dquot_dirty(struct dquot *dquot) | |||
830 | handle_t *handle; | 830 | handle_t *handle; |
831 | struct ocfs2_super *osb = OCFS2_SB(sb); | 831 | struct ocfs2_super *osb = OCFS2_SB(sb); |
832 | 832 | ||
833 | mlog(0, "id=%u, type=%d", dquot->dq_id, type); | 833 | trace_ocfs2_mark_dquot_dirty(dquot->dq_id, type); |
834 | 834 | ||
835 | /* In case user set some limits, sync dquot immediately to global | 835 | /* In case user set some limits, sync dquot immediately to global |
836 | * quota file so that information propagates quicker */ | 836 | * quota file so that information propagates quicker */ |