diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-02-20 22:10:44 -0500 |
---|---|---|
committer | Tao Ma <boyu.mt@taobao.com> | 2011-02-20 22:10:44 -0500 |
commit | ef6b689b63b9f5227ccee6f16dd9ee3faf58a464 (patch) | |
tree | ebe3416fcc221e152f2625e8e8794e92e3d8c979 /fs/ocfs2/export.c | |
parent | 422e6c4bc4b48c15b3cb57a1ca71431abfc57e54 (diff) |
ocfs2: Remove ENTRY from masklog.
ENTRY is used to record the entry of a function.
But because it is added in so many functions, if we enable it,
the system logs get filled up quickly and cause too much I/O.
So actually no one can open it for a production system or even
for a test.
So for mlog_entry_void, we just remove it.
for mlog_entry(...), we replace it with mlog(0,...), and they
will be replace by trace event later.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/export.c')
-rw-r--r-- | fs/ocfs2/export.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c index 254652a9b542..b90c751ba938 100644 --- a/fs/ocfs2/export.c +++ b/fs/ocfs2/export.c | |||
@@ -56,7 +56,7 @@ static struct dentry *ocfs2_get_dentry(struct super_block *sb, | |||
56 | int status, set; | 56 | int status, set; |
57 | struct dentry *result; | 57 | struct dentry *result; |
58 | 58 | ||
59 | mlog_entry("(0x%p, 0x%p)\n", sb, handle); | 59 | mlog(0, "(0x%p, 0x%p)\n", sb, handle); |
60 | 60 | ||
61 | if (blkno == 0) { | 61 | if (blkno == 0) { |
62 | mlog(0, "nfs wants inode with blkno: 0\n"); | 62 | mlog(0, "nfs wants inode with blkno: 0\n"); |
@@ -152,8 +152,8 @@ static struct dentry *ocfs2_get_parent(struct dentry *child) | |||
152 | struct dentry *parent; | 152 | struct dentry *parent; |
153 | struct inode *dir = child->d_inode; | 153 | struct inode *dir = child->d_inode; |
154 | 154 | ||
155 | mlog_entry("(0x%p, '%.*s')\n", child, | 155 | mlog(0, "(0x%p, '%.*s')\n", child, |
156 | child->d_name.len, child->d_name.name); | 156 | child->d_name.len, child->d_name.name); |
157 | 157 | ||
158 | mlog(0, "find parent of directory %llu\n", | 158 | mlog(0, "find parent of directory %llu\n", |
159 | (unsigned long long)OCFS2_I(dir)->ip_blkno); | 159 | (unsigned long long)OCFS2_I(dir)->ip_blkno); |
@@ -193,9 +193,9 @@ static int ocfs2_encode_fh(struct dentry *dentry, u32 *fh_in, int *max_len, | |||
193 | u32 generation; | 193 | u32 generation; |
194 | __le32 *fh = (__force __le32 *) fh_in; | 194 | __le32 *fh = (__force __le32 *) fh_in; |
195 | 195 | ||
196 | mlog_entry("(0x%p, '%.*s', 0x%p, %d, %d)\n", dentry, | 196 | mlog(0, "(0x%p, '%.*s', 0x%p, %d, %d)\n", dentry, |
197 | dentry->d_name.len, dentry->d_name.name, | 197 | dentry->d_name.len, dentry->d_name.name, |
198 | fh, len, connectable); | 198 | fh, len, connectable); |
199 | 199 | ||
200 | if (connectable && (len < 6)) { | 200 | if (connectable && (len < 6)) { |
201 | *max_len = 6; | 201 | *max_len = 6; |