aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/super.c
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-02-23 08:29:08 -0500
committerTao Ma <boyu.mt@taobao.com>2011-02-23 08:29:08 -0500
commit32a42d392bf9b8f90f41434ccb3605e958b16251 (patch)
tree56c8db7307fd74340635817d692a0fcddb5eece2 /fs/ocfs2/super.c
parentb5770f98b00e94dd573e3438427de09733fe2039 (diff)
ocfs2: Remove masklog ML_SUPER.
Remove mlog(0) from fs/ocfs2/super.c and the masklog SUPER. Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r--fs/ocfs2/super.c29
1 files changed, 10 insertions, 19 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index f7e73a029844..0e4083987d2b 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -45,7 +45,6 @@
45#define CREATE_TRACE_POINTS 45#define CREATE_TRACE_POINTS
46#include "ocfs2_trace.h" 46#include "ocfs2_trace.h"
47 47
48#define MLOG_MASK_PREFIX ML_SUPER
49#include <cluster/masklog.h> 48#include <cluster/masklog.h>
50 49
51#include "ocfs2.h" 50#include "ocfs2.h"
@@ -680,12 +679,9 @@ static int ocfs2_remount(struct super_block *sb, int *flags, char *data)
680 } 679 }
681 680
682 if (*flags & MS_RDONLY) { 681 if (*flags & MS_RDONLY) {
683 mlog(0, "Going to ro mode.\n");
684 sb->s_flags |= MS_RDONLY; 682 sb->s_flags |= MS_RDONLY;
685 osb->osb_flags |= OCFS2_OSB_SOFT_RO; 683 osb->osb_flags |= OCFS2_OSB_SOFT_RO;
686 } else { 684 } else {
687 mlog(0, "Making ro filesystem writeable.\n");
688
689 if (osb->osb_flags & OCFS2_OSB_ERROR_FS) { 685 if (osb->osb_flags & OCFS2_OSB_ERROR_FS) {
690 mlog(ML_ERROR, "Cannot remount RDWR " 686 mlog(ML_ERROR, "Cannot remount RDWR "
691 "filesystem due to previous errors.\n"); 687 "filesystem due to previous errors.\n");
@@ -703,6 +699,7 @@ static int ocfs2_remount(struct super_block *sb, int *flags, char *data)
703 sb->s_flags &= ~MS_RDONLY; 699 sb->s_flags &= ~MS_RDONLY;
704 osb->osb_flags &= ~OCFS2_OSB_SOFT_RO; 700 osb->osb_flags &= ~OCFS2_OSB_SOFT_RO;
705 } 701 }
702 trace_ocfs2_remount(sb->s_flags, osb->osb_flags, *flags);
706unlock_osb: 703unlock_osb:
707 spin_unlock(&osb->osb_lock); 704 spin_unlock(&osb->osb_lock);
708 /* Enable quota accounting after remounting RW */ 705 /* Enable quota accounting after remounting RW */
@@ -1028,7 +1025,7 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
1028 char nodestr[8]; 1025 char nodestr[8];
1029 struct ocfs2_blockcheck_stats stats; 1026 struct ocfs2_blockcheck_stats stats;
1030 1027
1031 mlog(0, "%p, %p, %i", sb, data, silent); 1028 trace_ocfs2_fill_super(sb, data, silent);
1032 1029
1033 if (!ocfs2_parse_options(sb, data, &parsed_options, 0)) { 1030 if (!ocfs2_parse_options(sb, data, &parsed_options, 0)) {
1034 status = -EINVAL; 1031 status = -EINVAL;
@@ -1315,8 +1312,7 @@ static int ocfs2_parse_options(struct super_block *sb,
1315 char *p; 1312 char *p;
1316 u32 tmp; 1313 u32 tmp;
1317 1314
1318 mlog(0, "remount: %d, options: \"%s\"\n", is_remount, 1315 trace_ocfs2_parse_options(is_remount, options ? options : "(none)");
1319 options ? options : "(none)");
1320 1316
1321 mopt->commit_interval = 0; 1317 mopt->commit_interval = 0;
1322 mopt->mount_opt = OCFS2_MOUNT_NOINTR; 1318 mopt->mount_opt = OCFS2_MOUNT_NOINTR;
@@ -1692,7 +1688,7 @@ static void __exit ocfs2_exit(void)
1692 1688
1693static void ocfs2_put_super(struct super_block *sb) 1689static void ocfs2_put_super(struct super_block *sb)
1694{ 1690{
1695 mlog(0, "(0x%p)\n", sb); 1691 trace_ocfs2_put_super(sb);
1696 1692
1697 ocfs2_sync_blockdev(sb); 1693 ocfs2_sync_blockdev(sb);
1698 ocfs2_dismount_volume(sb, 0); 1694 ocfs2_dismount_volume(sb, 0);
@@ -1707,7 +1703,7 @@ static int ocfs2_statfs(struct dentry *dentry, struct kstatfs *buf)
1707 struct buffer_head *bh = NULL; 1703 struct buffer_head *bh = NULL;
1708 struct inode *inode = NULL; 1704 struct inode *inode = NULL;
1709 1705
1710 mlog(0, "(%p, %p)\n", dentry->d_sb, buf); 1706 trace_ocfs2_statfs(dentry->d_sb, buf);
1711 1707
1712 osb = OCFS2_SB(dentry->d_sb); 1708 osb = OCFS2_SB(dentry->d_sb);
1713 1709
@@ -1928,7 +1924,7 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err)
1928 struct ocfs2_super *osb = NULL; 1924 struct ocfs2_super *osb = NULL;
1929 char nodestr[8]; 1925 char nodestr[8];
1930 1926
1931 mlog(0, "(0x%p)\n", sb); 1927 trace_ocfs2_dismount_volume(sb);
1932 1928
1933 BUG_ON(!sb); 1929 BUG_ON(!sb);
1934 osb = OCFS2_SB(sb); 1930 osb = OCFS2_SB(sb);
@@ -2143,7 +2139,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
2143 status = -EINVAL; 2139 status = -EINVAL;
2144 goto bail; 2140 goto bail;
2145 } 2141 }
2146 mlog(0, "max_slots for this device: %u\n", osb->max_slots);
2147 2142
2148 ocfs2_orphan_scan_init(osb); 2143 ocfs2_orphan_scan_init(osb);
2149 2144
@@ -2282,7 +2277,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
2282 osb->s_clustersize_bits = 2277 osb->s_clustersize_bits =
2283 le32_to_cpu(di->id2.i_super.s_clustersize_bits); 2278 le32_to_cpu(di->id2.i_super.s_clustersize_bits);
2284 osb->s_clustersize = 1 << osb->s_clustersize_bits; 2279 osb->s_clustersize = 1 << osb->s_clustersize_bits;
2285 mlog(0, "clusterbits=%d\n", osb->s_clustersize_bits);
2286 2280
2287 if (osb->s_clustersize < OCFS2_MIN_CLUSTERSIZE || 2281 if (osb->s_clustersize < OCFS2_MIN_CLUSTERSIZE ||
2288 osb->s_clustersize > OCFS2_MAX_CLUSTERSIZE) { 2282 osb->s_clustersize > OCFS2_MAX_CLUSTERSIZE) {
@@ -2321,11 +2315,10 @@ static int ocfs2_initialize_super(struct super_block *sb,
2321 le64_to_cpu(di->id2.i_super.s_first_cluster_group); 2315 le64_to_cpu(di->id2.i_super.s_first_cluster_group);
2322 osb->fs_generation = le32_to_cpu(di->i_fs_generation); 2316 osb->fs_generation = le32_to_cpu(di->i_fs_generation);
2323 osb->uuid_hash = le32_to_cpu(di->id2.i_super.s_uuid_hash); 2317 osb->uuid_hash = le32_to_cpu(di->id2.i_super.s_uuid_hash);
2324 mlog(0, "vol_label: %s\n", osb->vol_label); 2318 trace_ocfs2_initialize_super(osb->vol_label, osb->uuid_str,
2325 mlog(0, "uuid: %s\n", osb->uuid_str); 2319 (unsigned long long)osb->root_blkno,
2326 mlog(0, "root_blkno=%llu, system_dir_blkno=%llu\n", 2320 (unsigned long long)osb->system_dir_blkno,
2327 (unsigned long long)osb->root_blkno, 2321 osb->s_clustersize_bits);
2328 (unsigned long long)osb->system_dir_blkno);
2329 2322
2330 osb->osb_dlm_debug = ocfs2_new_dlm_debug(); 2323 osb->osb_dlm_debug = ocfs2_new_dlm_debug();
2331 if (!osb->osb_dlm_debug) { 2324 if (!osb->osb_dlm_debug) {
@@ -2500,8 +2493,6 @@ static int ocfs2_check_volume(struct ocfs2_super *osb)
2500 * ourselves as mounted. */ 2493 * ourselves as mounted. */
2501 } 2494 }
2502 2495
2503 mlog(0, "Journal loaded.\n");
2504
2505 status = ocfs2_load_local_alloc(osb); 2496 status = ocfs2_load_local_alloc(osb);
2506 if (status < 0) { 2497 if (status < 0) {
2507 mlog_errno(status); 2498 mlog_errno(status);