aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-02-20 22:10:44 -0500
committerTao Ma <boyu.mt@taobao.com>2011-02-20 22:10:44 -0500
commitef6b689b63b9f5227ccee6f16dd9ee3faf58a464 (patch)
treeebe3416fcc221e152f2625e8e8794e92e3d8c979
parent422e6c4bc4b48c15b3cb57a1ca71431abfc57e54 (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>
-rw-r--r--fs/ocfs2/alloc.c28
-rw-r--r--fs/ocfs2/aops.c16
-rw-r--r--fs/ocfs2/buffer_head_io.c10
-rw-r--r--fs/ocfs2/cluster/heartbeat.c2
-rw-r--r--fs/ocfs2/cluster/masklog.c1
-rw-r--r--fs/ocfs2/cluster/masklog.h13
-rw-r--r--fs/ocfs2/dcache.c4
-rw-r--r--fs/ocfs2/dir.c20
-rw-r--r--fs/ocfs2/dlm/dlmconvert.c6
-rw-r--r--fs/ocfs2/dlm/dlmdomain.c8
-rw-r--r--fs/ocfs2/dlm/dlmlock.c10
-rw-r--r--fs/ocfs2/dlm/dlmmaster.c6
-rw-r--r--fs/ocfs2/dlm/dlmrecovery.c4
-rw-r--r--fs/ocfs2/dlm/dlmunlock.c4
-rw-r--r--fs/ocfs2/dlmglue.c78
-rw-r--r--fs/ocfs2/export.c12
-rw-r--r--fs/ocfs2/extent_map.c8
-rw-r--r--fs/ocfs2/file.c73
-rw-r--r--fs/ocfs2/inode.c28
-rw-r--r--fs/ocfs2/journal.c43
-rw-r--r--fs/ocfs2/localalloc.c26
-rw-r--r--fs/ocfs2/mmap.c2
-rw-r--r--fs/ocfs2/namei.c74
-rw-r--r--fs/ocfs2/quota_global.c14
-rw-r--r--fs/ocfs2/quota_local.c2
-rw-r--r--fs/ocfs2/resize.c8
-rw-r--r--fs/ocfs2/slot_map.c2
-rw-r--r--fs/ocfs2/suballoc.c35
-rw-r--r--fs/ocfs2/super.c32
-rw-r--r--fs/ocfs2/symlink.c6
-rw-r--r--fs/ocfs2/xattr.c4
31 files changed, 161 insertions, 418 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index e4984e259cb6..47a6ce84e67f 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -965,8 +965,6 @@ int ocfs2_num_free_extents(struct ocfs2_super *osb,
965 struct buffer_head *eb_bh = NULL; 965 struct buffer_head *eb_bh = NULL;
966 u64 last_eb_blk = 0; 966 u64 last_eb_blk = 0;
967 967
968 mlog_entry_void();
969
970 el = et->et_root_el; 968 el = et->et_root_el;
971 last_eb_blk = ocfs2_et_get_last_eb_blk(et); 969 last_eb_blk = ocfs2_et_get_last_eb_blk(et);
972 970
@@ -1010,8 +1008,6 @@ static int ocfs2_create_new_meta_bhs(handle_t *handle,
1010 OCFS2_SB(ocfs2_metadata_cache_get_super(et->et_ci)); 1008 OCFS2_SB(ocfs2_metadata_cache_get_super(et->et_ci));
1011 struct ocfs2_extent_block *eb; 1009 struct ocfs2_extent_block *eb;
1012 1010
1013 mlog_entry_void();
1014
1015 count = 0; 1011 count = 0;
1016 while (count < wanted) { 1012 while (count < wanted) {
1017 status = ocfs2_claim_metadata(handle, 1013 status = ocfs2_claim_metadata(handle,
@@ -1173,8 +1169,6 @@ static int ocfs2_add_branch(handle_t *handle,
1173 struct ocfs2_extent_list *el; 1169 struct ocfs2_extent_list *el;
1174 u32 new_cpos, root_end; 1170 u32 new_cpos, root_end;
1175 1171
1176 mlog_entry_void();
1177
1178 BUG_ON(!last_eb_bh || !*last_eb_bh); 1172 BUG_ON(!last_eb_bh || !*last_eb_bh);
1179 1173
1180 if (eb_bh) { 1174 if (eb_bh) {
@@ -1353,8 +1347,6 @@ static int ocfs2_shift_tree_depth(handle_t *handle,
1353 struct ocfs2_extent_list *root_el; 1347 struct ocfs2_extent_list *root_el;
1354 struct ocfs2_extent_list *eb_el; 1348 struct ocfs2_extent_list *eb_el;
1355 1349
1356 mlog_entry_void();
1357
1358 status = ocfs2_create_new_meta_bhs(handle, et, 1, meta_ac, 1350 status = ocfs2_create_new_meta_bhs(handle, et, 1, meta_ac,
1359 &new_eb_bh); 1351 &new_eb_bh);
1360 if (status < 0) { 1352 if (status < 0) {
@@ -1446,8 +1438,6 @@ static int ocfs2_find_branch_target(struct ocfs2_extent_tree *et,
1446 struct buffer_head *bh = NULL; 1438 struct buffer_head *bh = NULL;
1447 struct buffer_head *lowest_bh = NULL; 1439 struct buffer_head *lowest_bh = NULL;
1448 1440
1449 mlog_entry_void();
1450
1451 *target_bh = NULL; 1441 *target_bh = NULL;
1452 1442
1453 el = et->et_root_el; 1443 el = et->et_root_el;
@@ -5795,8 +5785,8 @@ int ocfs2_truncate_log_append(struct ocfs2_super *osb,
5795 struct ocfs2_dinode *di; 5785 struct ocfs2_dinode *di;
5796 struct ocfs2_truncate_log *tl; 5786 struct ocfs2_truncate_log *tl;
5797 5787
5798 mlog_entry("start_blk = %llu, num_clusters = %u\n", 5788 mlog(0, "start_blk = %llu, num_clusters = %u\n",
5799 (unsigned long long)start_blk, num_clusters); 5789 (unsigned long long)start_blk, num_clusters);
5800 5790
5801 BUG_ON(mutex_trylock(&tl_inode->i_mutex)); 5791 BUG_ON(mutex_trylock(&tl_inode->i_mutex));
5802 5792
@@ -5878,8 +5868,6 @@ static int ocfs2_replay_truncate_records(struct ocfs2_super *osb,
5878 struct inode *tl_inode = osb->osb_tl_inode; 5868 struct inode *tl_inode = osb->osb_tl_inode;
5879 struct buffer_head *tl_bh = osb->osb_tl_bh; 5869 struct buffer_head *tl_bh = osb->osb_tl_bh;
5880 5870
5881 mlog_entry_void();
5882
5883 di = (struct ocfs2_dinode *) tl_bh->b_data; 5871 di = (struct ocfs2_dinode *) tl_bh->b_data;
5884 tl = &di->id2.i_dealloc; 5872 tl = &di->id2.i_dealloc;
5885 i = le16_to_cpu(tl->tl_used) - 1; 5873 i = le16_to_cpu(tl->tl_used) - 1;
@@ -5949,8 +5937,6 @@ int __ocfs2_flush_truncate_log(struct ocfs2_super *osb)
5949 struct ocfs2_dinode *di; 5937 struct ocfs2_dinode *di;
5950 struct ocfs2_truncate_log *tl; 5938 struct ocfs2_truncate_log *tl;
5951 5939
5952 mlog_entry_void();
5953
5954 BUG_ON(mutex_trylock(&tl_inode->i_mutex)); 5940 BUG_ON(mutex_trylock(&tl_inode->i_mutex));
5955 5941
5956 di = (struct ocfs2_dinode *) tl_bh->b_data; 5942 di = (struct ocfs2_dinode *) tl_bh->b_data;
@@ -6032,8 +6018,6 @@ static void ocfs2_truncate_log_worker(struct work_struct *work)
6032 container_of(work, struct ocfs2_super, 6018 container_of(work, struct ocfs2_super,
6033 osb_truncate_log_wq.work); 6019 osb_truncate_log_wq.work);
6034 6020
6035 mlog_entry_void();
6036
6037 status = ocfs2_flush_truncate_log(osb); 6021 status = ocfs2_flush_truncate_log(osb);
6038 if (status < 0) 6022 if (status < 0)
6039 mlog_errno(status); 6023 mlog_errno(status);
@@ -6174,8 +6158,6 @@ int ocfs2_complete_truncate_log_recovery(struct ocfs2_super *osb,
6174 struct inode *tl_inode = osb->osb_tl_inode; 6158 struct inode *tl_inode = osb->osb_tl_inode;
6175 struct ocfs2_truncate_log *tl; 6159 struct ocfs2_truncate_log *tl;
6176 6160
6177 mlog_entry_void();
6178
6179 if (OCFS2_I(tl_inode)->ip_blkno == le64_to_cpu(tl_copy->i_blkno)) { 6161 if (OCFS2_I(tl_inode)->ip_blkno == le64_to_cpu(tl_copy->i_blkno)) {
6180 mlog(ML_ERROR, "Asked to recover my own truncate log!\n"); 6162 mlog(ML_ERROR, "Asked to recover my own truncate log!\n");
6181 return -EINVAL; 6163 return -EINVAL;
@@ -6228,8 +6210,6 @@ void ocfs2_truncate_log_shutdown(struct ocfs2_super *osb)
6228 int status; 6210 int status;
6229 struct inode *tl_inode = osb->osb_tl_inode; 6211 struct inode *tl_inode = osb->osb_tl_inode;
6230 6212
6231 mlog_entry_void();
6232
6233 if (tl_inode) { 6213 if (tl_inode) {
6234 cancel_delayed_work(&osb->osb_truncate_log_wq); 6214 cancel_delayed_work(&osb->osb_truncate_log_wq);
6235 flush_workqueue(ocfs2_wq); 6215 flush_workqueue(ocfs2_wq);
@@ -6251,8 +6231,6 @@ int ocfs2_truncate_log_init(struct ocfs2_super *osb)
6251 struct inode *tl_inode = NULL; 6231 struct inode *tl_inode = NULL;
6252 struct buffer_head *tl_bh = NULL; 6232 struct buffer_head *tl_bh = NULL;
6253 6233
6254 mlog_entry_void();
6255
6256 status = ocfs2_get_truncate_log_info(osb, 6234 status = ocfs2_get_truncate_log_info(osb,
6257 osb->slot_num, 6235 osb->slot_num,
6258 &tl_inode, 6236 &tl_inode,
@@ -7005,8 +6983,6 @@ int ocfs2_commit_truncate(struct ocfs2_super *osb,
7005 struct ocfs2_extent_tree et; 6983 struct ocfs2_extent_tree et;
7006 struct ocfs2_cached_dealloc_ctxt dealloc; 6984 struct ocfs2_cached_dealloc_ctxt dealloc;
7007 6985
7008 mlog_entry_void();
7009
7010 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); 6986 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh);
7011 ocfs2_init_dealloc_ctxt(&dealloc); 6987 ocfs2_init_dealloc_ctxt(&dealloc);
7012 6988
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 1fbb0e20131b..5dbfc9e45195 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -59,8 +59,8 @@ static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock,
59 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 59 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
60 void *kaddr; 60 void *kaddr;
61 61
62 mlog_entry("(0x%p, %llu, 0x%p, %d)\n", inode, 62 mlog(0, "(0x%p, %llu, 0x%p, %d)\n", inode,
63 (unsigned long long)iblock, bh_result, create); 63 (unsigned long long)iblock, bh_result, create);
64 64
65 BUG_ON(ocfs2_inode_is_fast_symlink(inode)); 65 BUG_ON(ocfs2_inode_is_fast_symlink(inode));
66 66
@@ -136,8 +136,8 @@ int ocfs2_get_block(struct inode *inode, sector_t iblock,
136 u64 p_blkno, count, past_eof; 136 u64 p_blkno, count, past_eof;
137 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 137 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
138 138
139 mlog_entry("(0x%p, %llu, 0x%p, %d)\n", inode, 139 mlog(0, "(0x%p, %llu, 0x%p, %d)\n", inode,
140 (unsigned long long)iblock, bh_result, create); 140 (unsigned long long)iblock, bh_result, create);
141 141
142 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) 142 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE)
143 mlog(ML_NOTICE, "get_block on system inode 0x%p (%lu)\n", 143 mlog(ML_NOTICE, "get_block on system inode 0x%p (%lu)\n",
@@ -278,7 +278,7 @@ static int ocfs2_readpage(struct file *file, struct page *page)
278 loff_t start = (loff_t)page->index << PAGE_CACHE_SHIFT; 278 loff_t start = (loff_t)page->index << PAGE_CACHE_SHIFT;
279 int ret, unlock = 1; 279 int ret, unlock = 1;
280 280
281 mlog_entry("(0x%p, %lu)\n", file, (page ? page->index : 0)); 281 mlog(0, "(0x%p, %lu)\n", file, (page ? page->index : 0));
282 282
283 ret = ocfs2_inode_lock_with_page(inode, NULL, 0, page); 283 ret = ocfs2_inode_lock_with_page(inode, NULL, 0, page);
284 if (ret != 0) { 284 if (ret != 0) {
@@ -398,7 +398,7 @@ static int ocfs2_writepage(struct page *page, struct writeback_control *wbc)
398{ 398{
399 int ret; 399 int ret;
400 400
401 mlog_entry("(0x%p)\n", page); 401 mlog(0, "(0x%p)\n", page);
402 402
403 ret = block_write_full_page(page, ocfs2_get_block, wbc); 403 ret = block_write_full_page(page, ocfs2_get_block, wbc);
404 404
@@ -450,7 +450,7 @@ static sector_t ocfs2_bmap(struct address_space *mapping, sector_t block)
450 int err = 0; 450 int err = 0;
451 struct inode *inode = mapping->host; 451 struct inode *inode = mapping->host;
452 452
453 mlog_entry("(block = %llu)\n", (unsigned long long)block); 453 mlog(0, "(block = %llu)\n", (unsigned long long)block);
454 454
455 /* We don't need to lock journal system files, since they aren't 455 /* We don't need to lock journal system files, since they aren't
456 * accessed concurrently from multiple nodes. 456 * accessed concurrently from multiple nodes.
@@ -618,8 +618,6 @@ static ssize_t ocfs2_direct_IO(int rw,
618 struct inode *inode = file->f_path.dentry->d_inode->i_mapping->host; 618 struct inode *inode = file->f_path.dentry->d_inode->i_mapping->host;
619 int ret; 619 int ret;
620 620
621 mlog_entry_void();
622
623 /* 621 /*
624 * Fallback to buffered I/O if we see an inode without 622 * Fallback to buffered I/O if we see an inode without
625 * extents. 623 * extents.
diff --git a/fs/ocfs2/buffer_head_io.c b/fs/ocfs2/buffer_head_io.c
index f9d5d3ffc75a..024bd45b7a48 100644
--- a/fs/ocfs2/buffer_head_io.c
+++ b/fs/ocfs2/buffer_head_io.c
@@ -55,8 +55,8 @@ int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh,
55{ 55{
56 int ret = 0; 56 int ret = 0;
57 57
58 mlog_entry("(bh->b_blocknr = %llu, ci=%p)\n", 58 mlog(0, "(bh->b_blocknr = %llu, ci=%p)\n",
59 (unsigned long long)bh->b_blocknr, ci); 59 (unsigned long long)bh->b_blocknr, ci);
60 60
61 BUG_ON(bh->b_blocknr < OCFS2_SUPER_BLOCK_BLKNO); 61 BUG_ON(bh->b_blocknr < OCFS2_SUPER_BLOCK_BLKNO);
62 BUG_ON(buffer_jbd(bh)); 62 BUG_ON(buffer_jbd(bh));
@@ -186,8 +186,8 @@ int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr,
186 struct buffer_head *bh; 186 struct buffer_head *bh;
187 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); 187 struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
188 188
189 mlog_entry("(ci=%p, block=(%llu), nr=(%d), flags=%d)\n", 189 mlog(0, "(ci=%p, block=(%llu), nr=(%d), flags=%d)\n",
190 ci, (unsigned long long)block, nr, flags); 190 ci, (unsigned long long)block, nr, flags);
191 191
192 BUG_ON(!ci); 192 BUG_ON(!ci);
193 BUG_ON((flags & OCFS2_BH_READAHEAD) && 193 BUG_ON((flags & OCFS2_BH_READAHEAD) &&
@@ -408,8 +408,6 @@ int ocfs2_write_super_or_backup(struct ocfs2_super *osb,
408 int ret = 0; 408 int ret = 0;
409 struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data; 409 struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data;
410 410
411 mlog_entry_void();
412
413 BUG_ON(buffer_jbd(bh)); 411 BUG_ON(buffer_jbd(bh));
414 ocfs2_check_super_or_backup(osb->sb, bh->b_blocknr); 412 ocfs2_check_super_or_backup(osb->sb, bh->b_blocknr);
415 413
diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index b108e863d8f6..929178ce17a2 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -1658,8 +1658,6 @@ static int o2hb_populate_slot_data(struct o2hb_region *reg)
1658 struct o2hb_disk_slot *slot; 1658 struct o2hb_disk_slot *slot;
1659 struct o2hb_disk_heartbeat_block *hb_block; 1659 struct o2hb_disk_heartbeat_block *hb_block;
1660 1660
1661 mlog_entry_void();
1662
1663 ret = o2hb_read_slots(reg, reg->hr_blocks); 1661 ret = o2hb_read_slots(reg, reg->hr_blocks);
1664 if (ret) { 1662 if (ret) {
1665 mlog_errno(ret); 1663 mlog_errno(ret);
diff --git a/fs/ocfs2/cluster/masklog.c b/fs/ocfs2/cluster/masklog.c
index 6c61771469af..bac64570c525 100644
--- a/fs/ocfs2/cluster/masklog.c
+++ b/fs/ocfs2/cluster/masklog.c
@@ -80,7 +80,6 @@ struct mlog_attribute {
80} 80}
81 81
82static struct mlog_attribute mlog_attrs[MLOG_MAX_BITS] = { 82static struct mlog_attribute mlog_attrs[MLOG_MAX_BITS] = {
83 define_mask(ENTRY),
84 define_mask(EXIT), 83 define_mask(EXIT),
85 define_mask(TCP), 84 define_mask(TCP),
86 define_mask(MSG), 85 define_mask(MSG),
diff --git a/fs/ocfs2/cluster/masklog.h b/fs/ocfs2/cluster/masklog.h
index 34d6544357d9..6e20877436b9 100644
--- a/fs/ocfs2/cluster/masklog.h
+++ b/fs/ocfs2/cluster/masklog.h
@@ -82,7 +82,6 @@
82 82
83/* bits that are frequently given and infrequently matched in the low word */ 83/* bits that are frequently given and infrequently matched in the low word */
84/* NOTE: If you add a flag, you need to also update masklog.c! */ 84/* NOTE: If you add a flag, you need to also update masklog.c! */
85#define ML_ENTRY 0x0000000000000001ULL /* func call entry */
86#define ML_EXIT 0x0000000000000002ULL /* func call exit */ 85#define ML_EXIT 0x0000000000000002ULL /* func call exit */
87#define ML_TCP 0x0000000000000004ULL /* net cluster/tcp.c */ 86#define ML_TCP 0x0000000000000004ULL /* net cluster/tcp.c */
88#define ML_MSG 0x0000000000000008ULL /* net network messages */ 87#define ML_MSG 0x0000000000000008ULL /* net network messages */
@@ -124,7 +123,7 @@
124#define ML_KTHREAD 0x4000000000000000ULL /* kernel thread activity */ 123#define ML_KTHREAD 0x4000000000000000ULL /* kernel thread activity */
125 124
126#define MLOG_INITIAL_AND_MASK (ML_ERROR|ML_NOTICE) 125#define MLOG_INITIAL_AND_MASK (ML_ERROR|ML_NOTICE)
127#define MLOG_INITIAL_NOT_MASK (ML_ENTRY|ML_EXIT) 126#define MLOG_INITIAL_NOT_MASK (ML_EXIT)
128#ifndef MLOG_MASK_PREFIX 127#ifndef MLOG_MASK_PREFIX
129#define MLOG_MASK_PREFIX 0 128#define MLOG_MASK_PREFIX 0
130#endif 129#endif
@@ -223,14 +222,6 @@ extern struct mlog_bits mlog_and_bits, mlog_not_bits;
223} while (0) 222} while (0)
224 223
225#if defined(CONFIG_OCFS2_DEBUG_MASKLOG) 224#if defined(CONFIG_OCFS2_DEBUG_MASKLOG)
226#define mlog_entry(fmt, args...) do { \
227 mlog(ML_ENTRY, "ENTRY:" fmt , ##args); \
228} while (0)
229
230#define mlog_entry_void() do { \
231 mlog(ML_ENTRY, "ENTRY:\n"); \
232} while (0)
233
234/* 225/*
235 * We disable this for sparse. 226 * We disable this for sparse.
236 */ 227 */
@@ -267,8 +258,6 @@ extern struct mlog_bits mlog_and_bits, mlog_not_bits;
267 mlog(ML_EXIT, "EXIT\n"); \ 258 mlog(ML_EXIT, "EXIT\n"); \
268} while (0) 259} while (0)
269#else 260#else
270#define mlog_entry(...) do { } while (0)
271#define mlog_entry_void(...) do { } while (0)
272#define mlog_exit(...) do { } while (0) 261#define mlog_exit(...) do { } while (0)
273#define mlog_exit_ptr(...) do { } while (0) 262#define mlog_exit_ptr(...) do { } while (0)
274#define mlog_exit_void(...) do { } while (0) 263#define mlog_exit_void(...) do { } while (0)
diff --git a/fs/ocfs2/dcache.c b/fs/ocfs2/dcache.c
index 7eb90403fc8a..67d17a45773b 100644
--- a/fs/ocfs2/dcache.c
+++ b/fs/ocfs2/dcache.c
@@ -62,8 +62,8 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry,
62 inode = dentry->d_inode; 62 inode = dentry->d_inode;
63 osb = OCFS2_SB(dentry->d_sb); 63 osb = OCFS2_SB(dentry->d_sb);
64 64
65 mlog_entry("(0x%p, '%.*s')\n", dentry, 65 mlog(0, "(0x%p, '%.*s')\n", dentry,
66 dentry->d_name.len, dentry->d_name.name); 66 dentry->d_name.len, dentry->d_name.name);
67 67
68 /* For a negative dentry - 68 /* For a negative dentry -
69 * check the generation number of the parent and compare with the 69 * check the generation number of the parent and compare with the
diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c
index d417b3f9b0c7..2c983f083f8a 100644
--- a/fs/ocfs2/dir.c
+++ b/fs/ocfs2/dir.c
@@ -367,8 +367,6 @@ static int inline ocfs2_search_dirblock(struct buffer_head *bh,
367 int de_len; 367 int de_len;
368 int ret = 0; 368 int ret = 0;
369 369
370 mlog_entry_void();
371
372 de_buf = first_de; 370 de_buf = first_de;
373 dlimit = de_buf + bytes; 371 dlimit = de_buf + bytes;
374 372
@@ -706,8 +704,6 @@ static struct buffer_head *ocfs2_find_entry_el(const char *name, int namelen,
706 int num = 0; 704 int num = 0;
707 int nblocks, i, err; 705 int nblocks, i, err;
708 706
709 mlog_entry_void();
710
711 sb = dir->i_sb; 707 sb = dir->i_sb;
712 708
713 nblocks = i_size_read(dir) >> sb->s_blocksize_bits; 709 nblocks = i_size_read(dir) >> sb->s_blocksize_bits;
@@ -1166,7 +1162,7 @@ static int __ocfs2_delete_entry(handle_t *handle, struct inode *dir,
1166 int i, status = -ENOENT; 1162 int i, status = -ENOENT;
1167 ocfs2_journal_access_func access = ocfs2_journal_access_db; 1163 ocfs2_journal_access_func access = ocfs2_journal_access_db;
1168 1164
1169 mlog_entry("(0x%p, 0x%p, 0x%p, 0x%p)\n", handle, dir, de_del, bh); 1165 mlog(0, "(0x%p, 0x%p, 0x%p, 0x%p)\n", handle, dir, de_del, bh);
1170 1166
1171 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) 1167 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL)
1172 access = ocfs2_journal_access_di; 1168 access = ocfs2_journal_access_di;
@@ -1632,8 +1628,6 @@ int __ocfs2_add_entry(handle_t *handle,
1632 struct buffer_head *insert_bh = lookup->dl_leaf_bh; 1628 struct buffer_head *insert_bh = lookup->dl_leaf_bh;
1633 char *data_start = insert_bh->b_data; 1629 char *data_start = insert_bh->b_data;
1634 1630
1635 mlog_entry_void();
1636
1637 if (!namelen) 1631 if (!namelen)
1638 return -EINVAL; 1632 return -EINVAL;
1639 1633
@@ -2028,8 +2022,8 @@ int ocfs2_readdir(struct file * filp, void * dirent, filldir_t filldir)
2028 struct inode *inode = filp->f_path.dentry->d_inode; 2022 struct inode *inode = filp->f_path.dentry->d_inode;
2029 int lock_level = 0; 2023 int lock_level = 0;
2030 2024
2031 mlog_entry("dirino=%llu\n", 2025 mlog(0, "dirino=%llu\n",
2032 (unsigned long long)OCFS2_I(inode)->ip_blkno); 2026 (unsigned long long)OCFS2_I(inode)->ip_blkno);
2033 2027
2034 error = ocfs2_inode_lock_atime(inode, filp->f_vfsmnt, &lock_level); 2028 error = ocfs2_inode_lock_atime(inode, filp->f_vfsmnt, &lock_level);
2035 if (lock_level && error >= 0) { 2029 if (lock_level && error >= 0) {
@@ -2114,8 +2108,8 @@ int ocfs2_check_dir_for_entry(struct inode *dir,
2114 int ret; 2108 int ret;
2115 struct ocfs2_dir_lookup_result lookup = { NULL, }; 2109 struct ocfs2_dir_lookup_result lookup = { NULL, };
2116 2110
2117 mlog_entry("dir %llu, name '%.*s'\n", 2111 mlog(0, "dir %llu, name '%.*s'\n",
2118 (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen, name); 2112 (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen, name);
2119 2113
2120 ret = -EEXIST; 2114 ret = -EEXIST;
2121 if (ocfs2_find_entry(name, namelen, dir, &lookup) == 0) 2115 if (ocfs2_find_entry(name, namelen, dir, &lookup) == 0)
@@ -2324,8 +2318,6 @@ static int ocfs2_fill_new_dir_el(struct ocfs2_super *osb,
2324 struct buffer_head *new_bh = NULL; 2318 struct buffer_head *new_bh = NULL;
2325 struct ocfs2_dir_entry *de; 2319 struct ocfs2_dir_entry *de;
2326 2320
2327 mlog_entry_void();
2328
2329 if (ocfs2_new_dir_wants_trailer(inode)) 2321 if (ocfs2_new_dir_wants_trailer(inode))
2330 size = ocfs2_dir_trailer_blk_off(parent->i_sb); 2322 size = ocfs2_dir_trailer_blk_off(parent->i_sb);
2331 2323
@@ -3270,8 +3262,6 @@ static int ocfs2_extend_dir(struct ocfs2_super *osb,
3270 struct ocfs2_extent_tree et; 3262 struct ocfs2_extent_tree et;
3271 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; 3263 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
3272 3264
3273 mlog_entry_void();
3274
3275 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { 3265 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) {
3276 /* 3266 /*
3277 * This would be a code error as an inline directory should 3267 * This would be a code error as an inline directory should
diff --git a/fs/ocfs2/dlm/dlmconvert.c b/fs/ocfs2/dlm/dlmconvert.c
index 9f30491e5e88..29a886d1e82c 100644
--- a/fs/ocfs2/dlm/dlmconvert.c
+++ b/fs/ocfs2/dlm/dlmconvert.c
@@ -128,8 +128,8 @@ static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm,
128 128
129 assert_spin_locked(&res->spinlock); 129 assert_spin_locked(&res->spinlock);
130 130
131 mlog_entry("type=%d, convert_type=%d, new convert_type=%d\n", 131 mlog(0, "type=%d, convert_type=%d, new convert_type=%d\n",
132 lock->ml.type, lock->ml.convert_type, type); 132 lock->ml.type, lock->ml.convert_type, type);
133 133
134 spin_lock(&lock->spinlock); 134 spin_lock(&lock->spinlock);
135 135
@@ -353,7 +353,7 @@ static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm,
353 struct kvec vec[2]; 353 struct kvec vec[2];
354 size_t veclen = 1; 354 size_t veclen = 1;
355 355
356 mlog_entry("%.*s\n", res->lockname.len, res->lockname.name); 356 mlog(0, "%.*s\n", res->lockname.len, res->lockname.name);
357 357
358 memset(&convert, 0, sizeof(struct dlm_convert_lock)); 358 memset(&convert, 0, sizeof(struct dlm_convert_lock));
359 convert.node_idx = dlm->node_num; 359 convert.node_idx = dlm->node_num;
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c
index 7e38a072d720..5391f28d940b 100644
--- a/fs/ocfs2/dlm/dlmdomain.c
+++ b/fs/ocfs2/dlm/dlmdomain.c
@@ -188,7 +188,7 @@ struct dlm_lock_resource * __dlm_lookup_lockres_full(struct dlm_ctxt *dlm,
188 struct hlist_head *bucket; 188 struct hlist_head *bucket;
189 struct hlist_node *list; 189 struct hlist_node *list;
190 190
191 mlog_entry("%.*s\n", len, name); 191 mlog(0, "%.*s\n", len, name);
192 192
193 assert_spin_locked(&dlm->spinlock); 193 assert_spin_locked(&dlm->spinlock);
194 194
@@ -222,7 +222,7 @@ struct dlm_lock_resource * __dlm_lookup_lockres(struct dlm_ctxt *dlm,
222{ 222{
223 struct dlm_lock_resource *res = NULL; 223 struct dlm_lock_resource *res = NULL;
224 224
225 mlog_entry("%.*s\n", len, name); 225 mlog(0, "%.*s\n", len, name);
226 226
227 assert_spin_locked(&dlm->spinlock); 227 assert_spin_locked(&dlm->spinlock);
228 228
@@ -531,7 +531,7 @@ static int dlm_exit_domain_handler(struct o2net_msg *msg, u32 len, void *data,
531 unsigned int node; 531 unsigned int node;
532 struct dlm_exit_domain *exit_msg = (struct dlm_exit_domain *) msg->buf; 532 struct dlm_exit_domain *exit_msg = (struct dlm_exit_domain *) msg->buf;
533 533
534 mlog_entry("%p %u %p", msg, len, data); 534 mlog(0, "%p %u %p", msg, len, data);
535 535
536 if (!dlm_grab(dlm)) 536 if (!dlm_grab(dlm))
537 return 0; 537 return 0;
@@ -1553,7 +1553,7 @@ static int dlm_try_to_join_domain(struct dlm_ctxt *dlm)
1553 struct domain_join_ctxt *ctxt; 1553 struct domain_join_ctxt *ctxt;
1554 enum dlm_query_join_response_code response = JOIN_DISALLOW; 1554 enum dlm_query_join_response_code response = JOIN_DISALLOW;
1555 1555
1556 mlog_entry("%p", dlm); 1556 mlog(0, "%p", dlm);
1557 1557
1558 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL); 1558 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL);
1559 if (!ctxt) { 1559 if (!ctxt) {
diff --git a/fs/ocfs2/dlm/dlmlock.c b/fs/ocfs2/dlm/dlmlock.c
index 7009292aac5a..8d39e0fd66f7 100644
--- a/fs/ocfs2/dlm/dlmlock.c
+++ b/fs/ocfs2/dlm/dlmlock.c
@@ -128,7 +128,7 @@ static enum dlm_status dlmlock_master(struct dlm_ctxt *dlm,
128 int call_ast = 0, kick_thread = 0; 128 int call_ast = 0, kick_thread = 0;
129 enum dlm_status status = DLM_NORMAL; 129 enum dlm_status status = DLM_NORMAL;
130 130
131 mlog_entry("type=%d\n", lock->ml.type); 131 mlog(0, "type=%d\n", lock->ml.type);
132 132
133 spin_lock(&res->spinlock); 133 spin_lock(&res->spinlock);
134 /* if called from dlm_create_lock_handler, need to 134 /* if called from dlm_create_lock_handler, need to
@@ -227,8 +227,8 @@ static enum dlm_status dlmlock_remote(struct dlm_ctxt *dlm,
227 enum dlm_status status = DLM_DENIED; 227 enum dlm_status status = DLM_DENIED;
228 int lockres_changed = 1; 228 int lockres_changed = 1;
229 229
230 mlog_entry("type=%d\n", lock->ml.type); 230 mlog(0, "type=%d, lockres %.*s, flags = 0x%x\n",
231 mlog(0, "lockres %.*s, flags = 0x%x\n", res->lockname.len, 231 lock->ml.type, res->lockname.len,
232 res->lockname.name, flags); 232 res->lockname.name, flags);
233 233
234 spin_lock(&res->spinlock); 234 spin_lock(&res->spinlock);
@@ -308,8 +308,6 @@ static enum dlm_status dlm_send_remote_lock_request(struct dlm_ctxt *dlm,
308 int tmpret, status = 0; 308 int tmpret, status = 0;
309 enum dlm_status ret; 309 enum dlm_status ret;
310 310
311 mlog_entry_void();
312
313 memset(&create, 0, sizeof(create)); 311 memset(&create, 0, sizeof(create));
314 create.node_idx = dlm->node_num; 312 create.node_idx = dlm->node_num;
315 create.requested_type = lock->ml.type; 313 create.requested_type = lock->ml.type;
@@ -477,8 +475,6 @@ int dlm_create_lock_handler(struct o2net_msg *msg, u32 len, void *data,
477 475
478 BUG_ON(!dlm); 476 BUG_ON(!dlm);
479 477
480 mlog_entry_void();
481
482 if (!dlm_grab(dlm)) 478 if (!dlm_grab(dlm))
483 return DLM_REJECTED; 479 return DLM_REJECTED;
484 480
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
index 59f0f6bdfc62..9d67610dfc74 100644
--- a/fs/ocfs2/dlm/dlmmaster.c
+++ b/fs/ocfs2/dlm/dlmmaster.c
@@ -426,8 +426,6 @@ static void dlm_mle_release(struct kref *kref)
426 struct dlm_master_list_entry *mle; 426 struct dlm_master_list_entry *mle;
427 struct dlm_ctxt *dlm; 427 struct dlm_ctxt *dlm;
428 428
429 mlog_entry_void();
430
431 mle = container_of(kref, struct dlm_master_list_entry, mle_refs); 429 mle = container_of(kref, struct dlm_master_list_entry, mle_refs);
432 dlm = mle->dlm; 430 dlm = mle->dlm;
433 431
@@ -3120,8 +3118,6 @@ static int dlm_add_migration_mle(struct dlm_ctxt *dlm,
3120 3118
3121 *oldmle = NULL; 3119 *oldmle = NULL;
3122 3120
3123 mlog_entry_void();
3124
3125 assert_spin_locked(&dlm->spinlock); 3121 assert_spin_locked(&dlm->spinlock);
3126 assert_spin_locked(&dlm->master_lock); 3122 assert_spin_locked(&dlm->master_lock);
3127 3123
@@ -3261,7 +3257,7 @@ void dlm_clean_master_list(struct dlm_ctxt *dlm, u8 dead_node)
3261 struct hlist_node *list; 3257 struct hlist_node *list;
3262 unsigned int i; 3258 unsigned int i;
3263 3259
3264 mlog_entry("dlm=%s, dead node=%u\n", dlm->name, dead_node); 3260 mlog(0, "dlm=%s, dead node=%u\n", dlm->name, dead_node);
3265top: 3261top:
3266 assert_spin_locked(&dlm->spinlock); 3262 assert_spin_locked(&dlm->spinlock);
3267 3263
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c
index aaaffbcbe916..6602b23c2ab3 100644
--- a/fs/ocfs2/dlm/dlmrecovery.c
+++ b/fs/ocfs2/dlm/dlmrecovery.c
@@ -2083,8 +2083,6 @@ static void dlm_finish_local_lockres_recovery(struct dlm_ctxt *dlm,
2083 struct hlist_head *bucket; 2083 struct hlist_head *bucket;
2084 struct dlm_lock_resource *res, *next; 2084 struct dlm_lock_resource *res, *next;
2085 2085
2086 mlog_entry_void();
2087
2088 assert_spin_locked(&dlm->spinlock); 2086 assert_spin_locked(&dlm->spinlock);
2089 2087
2090 list_for_each_entry_safe(res, next, &dlm->reco.resources, recovering) { 2088 list_for_each_entry_safe(res, next, &dlm->reco.resources, recovering) {
@@ -2607,8 +2605,6 @@ static int dlm_send_begin_reco_message(struct dlm_ctxt *dlm, u8 dead_node)
2607 int nodenum; 2605 int nodenum;
2608 int status; 2606 int status;
2609 2607
2610 mlog_entry("%u\n", dead_node);
2611
2612 mlog(0, "%s: dead node is %u\n", dlm->name, dead_node); 2608 mlog(0, "%s: dead node is %u\n", dlm->name, dead_node);
2613 2609
2614 spin_lock(&dlm->spinlock); 2610 spin_lock(&dlm->spinlock);
diff --git a/fs/ocfs2/dlm/dlmunlock.c b/fs/ocfs2/dlm/dlmunlock.c
index 817287c6a6db..850aa7e87537 100644
--- a/fs/ocfs2/dlm/dlmunlock.c
+++ b/fs/ocfs2/dlm/dlmunlock.c
@@ -317,7 +317,7 @@ static enum dlm_status dlm_send_remote_unlock_request(struct dlm_ctxt *dlm,
317 struct kvec vec[2]; 317 struct kvec vec[2];
318 size_t veclen = 1; 318 size_t veclen = 1;
319 319
320 mlog_entry("%.*s\n", res->lockname.len, res->lockname.name); 320 mlog(0, "%.*s\n", res->lockname.len, res->lockname.name);
321 321
322 if (owner == dlm->node_num) { 322 if (owner == dlm->node_num) {
323 /* ended up trying to contact ourself. this means 323 /* ended up trying to contact ourself. this means
@@ -588,8 +588,6 @@ enum dlm_status dlmunlock(struct dlm_ctxt *dlm, struct dlm_lockstatus *lksb,
588 struct dlm_lock *lock = NULL; 588 struct dlm_lock *lock = NULL;
589 int call_ast, is_master; 589 int call_ast, is_master;
590 590
591 mlog_entry_void();
592
593 if (!lksb) { 591 if (!lksb) {
594 dlm_error(DLM_BADARGS); 592 dlm_error(DLM_BADARGS);
595 return DLM_BADARGS; 593 return DLM_BADARGS;
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index e8d94d722ecb..c2f3fa1c4722 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -397,8 +397,6 @@ static void ocfs2_build_lock_name(enum ocfs2_lock_type type,
397{ 397{
398 int len; 398 int len;
399 399
400 mlog_entry_void();
401
402 BUG_ON(type >= OCFS2_NUM_LOCK_TYPES); 400 BUG_ON(type >= OCFS2_NUM_LOCK_TYPES);
403 401
404 len = snprintf(name, OCFS2_LOCK_ID_MAX_LEN, "%c%s%016llx%08x", 402 len = snprintf(name, OCFS2_LOCK_ID_MAX_LEN, "%c%s%016llx%08x",
@@ -729,8 +727,6 @@ void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres,
729 727
730void ocfs2_lock_res_free(struct ocfs2_lock_res *res) 728void ocfs2_lock_res_free(struct ocfs2_lock_res *res)
731{ 729{
732 mlog_entry_void();
733
734 if (!(res->l_flags & OCFS2_LOCK_INITIALIZED)) 730 if (!(res->l_flags & OCFS2_LOCK_INITIALIZED))
735 return; 731 return;
736 732
@@ -762,8 +758,6 @@ void ocfs2_lock_res_free(struct ocfs2_lock_res *res)
762static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres, 758static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres,
763 int level) 759 int level)
764{ 760{
765 mlog_entry_void();
766
767 BUG_ON(!lockres); 761 BUG_ON(!lockres);
768 762
769 switch(level) { 763 switch(level) {
@@ -783,8 +777,6 @@ static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres,
783static inline void ocfs2_dec_holders(struct ocfs2_lock_res *lockres, 777static inline void ocfs2_dec_holders(struct ocfs2_lock_res *lockres,
784 int level) 778 int level)
785{ 779{
786 mlog_entry_void();
787
788 BUG_ON(!lockres); 780 BUG_ON(!lockres);
789 781
790 switch(level) { 782 switch(level) {
@@ -846,8 +838,6 @@ static void lockres_clear_flags(struct ocfs2_lock_res *lockres,
846 838
847static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres) 839static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres)
848{ 840{
849 mlog_entry_void();
850
851 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); 841 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY));
852 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED)); 842 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED));
853 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BLOCKED)); 843 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BLOCKED));
@@ -866,8 +856,6 @@ static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res
866 856
867static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres) 857static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres)
868{ 858{
869 mlog_entry_void();
870
871 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); 859 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY));
872 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED)); 860 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED));
873 861
@@ -895,8 +883,6 @@ static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lo
895 883
896static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres) 884static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres)
897{ 885{
898 mlog_entry_void();
899
900 BUG_ON((!(lockres->l_flags & OCFS2_LOCK_BUSY))); 886 BUG_ON((!(lockres->l_flags & OCFS2_LOCK_BUSY)));
901 BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED); 887 BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED);
902 888
@@ -916,7 +902,6 @@ static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres,
916 int level) 902 int level)
917{ 903{
918 int needs_downconvert = 0; 904 int needs_downconvert = 0;
919 mlog_entry_void();
920 905
921 assert_spin_locked(&lockres->l_lock); 906 assert_spin_locked(&lockres->l_lock);
922 907
@@ -1151,8 +1136,6 @@ static void ocfs2_unlock_ast(struct ocfs2_dlm_lksb *lksb, int error)
1151 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); 1136 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb);
1152 unsigned long flags; 1137 unsigned long flags;
1153 1138
1154 mlog_entry_void();
1155
1156 mlog(ML_BASTS, "UNLOCK AST fired for lockres %s, action = %d\n", 1139 mlog(ML_BASTS, "UNLOCK AST fired for lockres %s, action = %d\n",
1157 lockres->l_name, lockres->l_unlock_action); 1140 lockres->l_name, lockres->l_unlock_action);
1158 1141
@@ -1233,7 +1216,6 @@ static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres,
1233{ 1216{
1234 unsigned long flags; 1217 unsigned long flags;
1235 1218
1236 mlog_entry_void();
1237 spin_lock_irqsave(&lockres->l_lock, flags); 1219 spin_lock_irqsave(&lockres->l_lock, flags);
1238 lockres_clear_flags(lockres, OCFS2_LOCK_BUSY); 1220 lockres_clear_flags(lockres, OCFS2_LOCK_BUSY);
1239 lockres_clear_flags(lockres, OCFS2_LOCK_UPCONVERT_FINISHING); 1221 lockres_clear_flags(lockres, OCFS2_LOCK_UPCONVERT_FINISHING);
@@ -1260,8 +1242,6 @@ static int ocfs2_lock_create(struct ocfs2_super *osb,
1260 unsigned long flags; 1242 unsigned long flags;
1261 unsigned int gen; 1243 unsigned int gen;
1262 1244
1263 mlog_entry_void();
1264
1265 mlog(0, "lock %s, level = %d, flags = %u\n", lockres->l_name, level, 1245 mlog(0, "lock %s, level = %d, flags = %u\n", lockres->l_name, level,
1266 dlm_flags); 1246 dlm_flags);
1267 1247
@@ -1416,8 +1396,6 @@ static int __ocfs2_cluster_lock(struct ocfs2_super *osb,
1416 unsigned int gen; 1396 unsigned int gen;
1417 int noqueue_attempted = 0; 1397 int noqueue_attempted = 0;
1418 1398
1419 mlog_entry_void();
1420
1421 ocfs2_init_mask_waiter(&mw); 1399 ocfs2_init_mask_waiter(&mw);
1422 1400
1423 if (lockres->l_ops->flags & LOCK_TYPE_USES_LVB) 1401 if (lockres->l_ops->flags & LOCK_TYPE_USES_LVB)
@@ -1605,7 +1583,6 @@ static void __ocfs2_cluster_unlock(struct ocfs2_super *osb,
1605{ 1583{
1606 unsigned long flags; 1584 unsigned long flags;
1607 1585
1608 mlog_entry_void();
1609 spin_lock_irqsave(&lockres->l_lock, flags); 1586 spin_lock_irqsave(&lockres->l_lock, flags);
1610 ocfs2_dec_holders(lockres, level); 1587 ocfs2_dec_holders(lockres, level);
1611 ocfs2_downconvert_on_unlock(osb, lockres); 1588 ocfs2_downconvert_on_unlock(osb, lockres);
@@ -1648,8 +1625,6 @@ int ocfs2_create_new_inode_locks(struct inode *inode)
1648 BUG_ON(!inode); 1625 BUG_ON(!inode);
1649 BUG_ON(!ocfs2_inode_is_new(inode)); 1626 BUG_ON(!ocfs2_inode_is_new(inode));
1650 1627
1651 mlog_entry_void();
1652
1653 mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); 1628 mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno);
1654 1629
1655 /* NOTE: That we don't increment any of the holder counts, nor 1630 /* NOTE: That we don't increment any of the holder counts, nor
@@ -1695,8 +1670,6 @@ int ocfs2_rw_lock(struct inode *inode, int write)
1695 1670
1696 BUG_ON(!inode); 1671 BUG_ON(!inode);
1697 1672
1698 mlog_entry_void();
1699
1700 mlog(0, "inode %llu take %s RW lock\n", 1673 mlog(0, "inode %llu take %s RW lock\n",
1701 (unsigned long long)OCFS2_I(inode)->ip_blkno, 1674 (unsigned long long)OCFS2_I(inode)->ip_blkno,
1702 write ? "EXMODE" : "PRMODE"); 1675 write ? "EXMODE" : "PRMODE");
@@ -1725,8 +1698,6 @@ void ocfs2_rw_unlock(struct inode *inode, int write)
1725 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; 1698 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres;
1726 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 1699 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
1727 1700
1728 mlog_entry_void();
1729
1730 mlog(0, "inode %llu drop %s RW lock\n", 1701 mlog(0, "inode %llu drop %s RW lock\n",
1731 (unsigned long long)OCFS2_I(inode)->ip_blkno, 1702 (unsigned long long)OCFS2_I(inode)->ip_blkno,
1732 write ? "EXMODE" : "PRMODE"); 1703 write ? "EXMODE" : "PRMODE");
@@ -1748,8 +1719,6 @@ int ocfs2_open_lock(struct inode *inode)
1748 1719
1749 BUG_ON(!inode); 1720 BUG_ON(!inode);
1750 1721
1751 mlog_entry_void();
1752
1753 mlog(0, "inode %llu take PRMODE open lock\n", 1722 mlog(0, "inode %llu take PRMODE open lock\n",
1754 (unsigned long long)OCFS2_I(inode)->ip_blkno); 1723 (unsigned long long)OCFS2_I(inode)->ip_blkno);
1755 1724
@@ -1776,8 +1745,6 @@ int ocfs2_try_open_lock(struct inode *inode, int write)
1776 1745
1777 BUG_ON(!inode); 1746 BUG_ON(!inode);
1778 1747
1779 mlog_entry_void();
1780
1781 mlog(0, "inode %llu try to take %s open lock\n", 1748 mlog(0, "inode %llu try to take %s open lock\n",
1782 (unsigned long long)OCFS2_I(inode)->ip_blkno, 1749 (unsigned long long)OCFS2_I(inode)->ip_blkno,
1783 write ? "EXMODE" : "PRMODE"); 1750 write ? "EXMODE" : "PRMODE");
@@ -1811,8 +1778,6 @@ void ocfs2_open_unlock(struct inode *inode)
1811 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; 1778 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres;
1812 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 1779 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
1813 1780
1814 mlog_entry_void();
1815
1816 mlog(0, "inode %llu drop open lock\n", 1781 mlog(0, "inode %llu drop open lock\n",
1817 (unsigned long long)OCFS2_I(inode)->ip_blkno); 1782 (unsigned long long)OCFS2_I(inode)->ip_blkno);
1818 1783
@@ -2043,8 +2008,6 @@ static void ocfs2_downconvert_on_unlock(struct ocfs2_super *osb,
2043{ 2008{
2044 int kick = 0; 2009 int kick = 0;
2045 2010
2046 mlog_entry_void();
2047
2048 /* If we know that another node is waiting on our lock, kick 2011 /* If we know that another node is waiting on our lock, kick
2049 * the downconvert thread * pre-emptively when we reach a release 2012 * the downconvert thread * pre-emptively when we reach a release
2050 * condition. */ 2013 * condition. */
@@ -2095,8 +2058,6 @@ static void __ocfs2_stuff_meta_lvb(struct inode *inode)
2095 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; 2058 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres;
2096 struct ocfs2_meta_lvb *lvb; 2059 struct ocfs2_meta_lvb *lvb;
2097 2060
2098 mlog_entry_void();
2099
2100 lvb = ocfs2_dlm_lvb(&lockres->l_lksb); 2061 lvb = ocfs2_dlm_lvb(&lockres->l_lksb);
2101 2062
2102 /* 2063 /*
@@ -2145,8 +2106,6 @@ static void ocfs2_refresh_inode_from_lvb(struct inode *inode)
2145 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; 2106 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres;
2146 struct ocfs2_meta_lvb *lvb; 2107 struct ocfs2_meta_lvb *lvb;
2147 2108
2148 mlog_entry_void();
2149
2150 mlog_meta_lvb(0, lockres); 2109 mlog_meta_lvb(0, lockres);
2151 2110
2152 lvb = ocfs2_dlm_lvb(&lockres->l_lksb); 2111 lvb = ocfs2_dlm_lvb(&lockres->l_lksb);
@@ -2205,8 +2164,6 @@ static int ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres)
2205 unsigned long flags; 2164 unsigned long flags;
2206 int status = 0; 2165 int status = 0;
2207 2166
2208 mlog_entry_void();
2209
2210refresh_check: 2167refresh_check:
2211 spin_lock_irqsave(&lockres->l_lock, flags); 2168 spin_lock_irqsave(&lockres->l_lock, flags);
2212 if (!(lockres->l_flags & OCFS2_LOCK_NEEDS_REFRESH)) { 2169 if (!(lockres->l_flags & OCFS2_LOCK_NEEDS_REFRESH)) {
@@ -2237,7 +2194,6 @@ static inline void ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockre
2237 int status) 2194 int status)
2238{ 2195{
2239 unsigned long flags; 2196 unsigned long flags;
2240 mlog_entry_void();
2241 2197
2242 spin_lock_irqsave(&lockres->l_lock, flags); 2198 spin_lock_irqsave(&lockres->l_lock, flags);
2243 lockres_clear_flags(lockres, OCFS2_LOCK_REFRESHING); 2199 lockres_clear_flags(lockres, OCFS2_LOCK_REFRESHING);
@@ -2260,8 +2216,6 @@ static int ocfs2_inode_lock_update(struct inode *inode,
2260 struct ocfs2_dinode *fe; 2216 struct ocfs2_dinode *fe;
2261 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 2217 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2262 2218
2263 mlog_entry_void();
2264
2265 if (ocfs2_mount_local(osb)) 2219 if (ocfs2_mount_local(osb))
2266 goto bail; 2220 goto bail;
2267 2221
@@ -2374,8 +2328,6 @@ int ocfs2_inode_lock_full_nested(struct inode *inode,
2374 2328
2375 BUG_ON(!inode); 2329 BUG_ON(!inode);
2376 2330
2377 mlog_entry_void();
2378
2379 mlog(0, "inode %llu, take %s META lock\n", 2331 mlog(0, "inode %llu, take %s META lock\n",
2380 (unsigned long long)OCFS2_I(inode)->ip_blkno, 2332 (unsigned long long)OCFS2_I(inode)->ip_blkno,
2381 ex ? "EXMODE" : "PRMODE"); 2333 ex ? "EXMODE" : "PRMODE");
@@ -2517,7 +2469,6 @@ int ocfs2_inode_lock_atime(struct inode *inode,
2517{ 2469{
2518 int ret; 2470 int ret;
2519 2471
2520 mlog_entry_void();
2521 ret = ocfs2_inode_lock(inode, NULL, 0); 2472 ret = ocfs2_inode_lock(inode, NULL, 0);
2522 if (ret < 0) { 2473 if (ret < 0) {
2523 mlog_errno(ret); 2474 mlog_errno(ret);
@@ -2556,8 +2507,6 @@ void ocfs2_inode_unlock(struct inode *inode,
2556 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres; 2507 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres;
2557 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 2508 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2558 2509
2559 mlog_entry_void();
2560
2561 mlog(0, "inode %llu drop %s META lock\n", 2510 mlog(0, "inode %llu drop %s META lock\n",
2562 (unsigned long long)OCFS2_I(inode)->ip_blkno, 2511 (unsigned long long)OCFS2_I(inode)->ip_blkno,
2563 ex ? "EXMODE" : "PRMODE"); 2512 ex ? "EXMODE" : "PRMODE");
@@ -2617,8 +2566,6 @@ int ocfs2_super_lock(struct ocfs2_super *osb,
2617 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; 2566 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR;
2618 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; 2567 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres;
2619 2568
2620 mlog_entry_void();
2621
2622 if (ocfs2_is_hard_readonly(osb)) 2569 if (ocfs2_is_hard_readonly(osb))
2623 return -EROFS; 2570 return -EROFS;
2624 2571
@@ -3054,8 +3001,6 @@ int ocfs2_dlm_init(struct ocfs2_super *osb)
3054 int status = 0; 3001 int status = 0;
3055 struct ocfs2_cluster_connection *conn = NULL; 3002 struct ocfs2_cluster_connection *conn = NULL;
3056 3003
3057 mlog_entry_void();
3058
3059 if (ocfs2_mount_local(osb)) { 3004 if (ocfs2_mount_local(osb)) {
3060 osb->node_num = 0; 3005 osb->node_num = 0;
3061 goto local; 3006 goto local;
@@ -3119,8 +3064,6 @@ bail:
3119void ocfs2_dlm_shutdown(struct ocfs2_super *osb, 3064void ocfs2_dlm_shutdown(struct ocfs2_super *osb,
3120 int hangup_pending) 3065 int hangup_pending)
3121{ 3066{
3122 mlog_entry_void();
3123
3124 ocfs2_drop_osb_locks(osb); 3067 ocfs2_drop_osb_locks(osb);
3125 3068
3126 /* 3069 /*
@@ -3284,8 +3227,6 @@ int ocfs2_drop_inode_locks(struct inode *inode)
3284{ 3227{
3285 int status, err; 3228 int status, err;
3286 3229
3287 mlog_entry_void();
3288
3289 /* No need to call ocfs2_mark_lockres_freeing here - 3230 /* No need to call ocfs2_mark_lockres_freeing here -
3290 * ocfs2_clear_inode has done it for us. */ 3231 * ocfs2_clear_inode has done it for us. */
3291 3232
@@ -3352,8 +3293,6 @@ static int ocfs2_downconvert_lock(struct ocfs2_super *osb,
3352 int ret; 3293 int ret;
3353 u32 dlm_flags = DLM_LKF_CONVERT; 3294 u32 dlm_flags = DLM_LKF_CONVERT;
3354 3295
3355 mlog_entry_void();
3356
3357 mlog(ML_BASTS, "lockres %s, level %d => %d\n", lockres->l_name, 3296 mlog(ML_BASTS, "lockres %s, level %d => %d\n", lockres->l_name,
3358 lockres->l_level, new_level); 3297 lockres->l_level, new_level);
3359 3298
@@ -3385,8 +3324,6 @@ static int ocfs2_prepare_cancel_convert(struct ocfs2_super *osb,
3385{ 3324{
3386 assert_spin_locked(&lockres->l_lock); 3325 assert_spin_locked(&lockres->l_lock);
3387 3326
3388 mlog_entry_void();
3389
3390 if (lockres->l_unlock_action == OCFS2_UNLOCK_CANCEL_CONVERT) { 3327 if (lockres->l_unlock_action == OCFS2_UNLOCK_CANCEL_CONVERT) {
3391 /* If we're already trying to cancel a lock conversion 3328 /* If we're already trying to cancel a lock conversion
3392 * then just drop the spinlock and allow the caller to 3329 * then just drop the spinlock and allow the caller to
@@ -3416,8 +3353,6 @@ static int ocfs2_cancel_convert(struct ocfs2_super *osb,
3416{ 3353{
3417 int ret; 3354 int ret;
3418 3355
3419 mlog_entry_void();
3420
3421 ret = ocfs2_dlm_unlock(osb->cconn, &lockres->l_lksb, 3356 ret = ocfs2_dlm_unlock(osb->cconn, &lockres->l_lksb,
3422 DLM_LKF_CANCEL); 3357 DLM_LKF_CANCEL);
3423 if (ret) { 3358 if (ret) {
@@ -3443,8 +3378,6 @@ static int ocfs2_unblock_lock(struct ocfs2_super *osb,
3443 int set_lvb = 0; 3378 int set_lvb = 0;
3444 unsigned int gen; 3379 unsigned int gen;
3445 3380
3446 mlog_entry_void();
3447
3448 spin_lock_irqsave(&lockres->l_lock, flags); 3381 spin_lock_irqsave(&lockres->l_lock, flags);
3449 3382
3450recheck: 3383recheck:
@@ -3859,8 +3792,6 @@ static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres)
3859 struct mem_dqinfo *info = sb_dqinfo(oinfo->dqi_gi.dqi_sb, 3792 struct mem_dqinfo *info = sb_dqinfo(oinfo->dqi_gi.dqi_sb,
3860 oinfo->dqi_gi.dqi_type); 3793 oinfo->dqi_gi.dqi_type);
3861 3794
3862 mlog_entry_void();
3863
3864 lvb = ocfs2_dlm_lvb(&lockres->l_lksb); 3795 lvb = ocfs2_dlm_lvb(&lockres->l_lksb);
3865 lvb->lvb_version = OCFS2_QINFO_LVB_VERSION; 3796 lvb->lvb_version = OCFS2_QINFO_LVB_VERSION;
3866 lvb->lvb_bgrace = cpu_to_be32(info->dqi_bgrace); 3797 lvb->lvb_bgrace = cpu_to_be32(info->dqi_bgrace);
@@ -3879,7 +3810,6 @@ void ocfs2_qinfo_unlock(struct ocfs2_mem_dqinfo *oinfo, int ex)
3879 struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb); 3810 struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb);
3880 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; 3811 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR;
3881 3812
3882 mlog_entry_void();
3883 if (!ocfs2_is_hard_readonly(osb) && !ocfs2_mount_local(osb)) 3813 if (!ocfs2_is_hard_readonly(osb) && !ocfs2_mount_local(osb))
3884 ocfs2_cluster_unlock(osb, lockres, level); 3814 ocfs2_cluster_unlock(osb, lockres, level);
3885 mlog_exit_void(); 3815 mlog_exit_void();
@@ -3937,8 +3867,6 @@ int ocfs2_qinfo_lock(struct ocfs2_mem_dqinfo *oinfo, int ex)
3937 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; 3867 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR;
3938 int status = 0; 3868 int status = 0;
3939 3869
3940 mlog_entry_void();
3941
3942 /* On RO devices, locking really isn't needed... */ 3870 /* On RO devices, locking really isn't needed... */
3943 if (ocfs2_is_hard_readonly(osb)) { 3871 if (ocfs2_is_hard_readonly(osb)) {
3944 if (ex) 3872 if (ex)
@@ -4007,8 +3935,6 @@ static void ocfs2_process_blocked_lock(struct ocfs2_super *osb,
4007 * considered valid until we remove the OCFS2_LOCK_QUEUED 3935 * considered valid until we remove the OCFS2_LOCK_QUEUED
4008 * flag. */ 3936 * flag. */
4009 3937
4010 mlog_entry_void();
4011
4012 BUG_ON(!lockres); 3938 BUG_ON(!lockres);
4013 BUG_ON(!lockres->l_ops); 3939 BUG_ON(!lockres->l_ops);
4014 3940
@@ -4049,8 +3975,6 @@ unqueue:
4049static void ocfs2_schedule_blocked_lock(struct ocfs2_super *osb, 3975static void ocfs2_schedule_blocked_lock(struct ocfs2_super *osb,
4050 struct ocfs2_lock_res *lockres) 3976 struct ocfs2_lock_res *lockres)
4051{ 3977{
4052 mlog_entry_void();
4053
4054 assert_spin_locked(&lockres->l_lock); 3978 assert_spin_locked(&lockres->l_lock);
4055 3979
4056 if (lockres->l_flags & OCFS2_LOCK_FREEING) { 3980 if (lockres->l_flags & OCFS2_LOCK_FREEING) {
@@ -4080,8 +4004,6 @@ static void ocfs2_downconvert_thread_do_work(struct ocfs2_super *osb)
4080 unsigned long processed; 4004 unsigned long processed;
4081 struct ocfs2_lock_res *lockres; 4005 struct ocfs2_lock_res *lockres;
4082 4006
4083 mlog_entry_void();
4084
4085 spin_lock(&osb->dc_task_lock); 4007 spin_lock(&osb->dc_task_lock);
4086 /* grab this early so we know to try again if a state change and 4008 /* grab this early so we know to try again if a state change and
4087 * wake happens part-way through our work */ 4009 * wake happens part-way through our work */
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;
diff --git a/fs/ocfs2/extent_map.c b/fs/ocfs2/extent_map.c
index 09e3fdfa6d33..ed9916a9a271 100644
--- a/fs/ocfs2/extent_map.c
+++ b/fs/ocfs2/extent_map.c
@@ -841,10 +841,10 @@ int ocfs2_read_virt_blocks(struct inode *inode, u64 v_block, int nr,
841 u64 p_block, p_count; 841 u64 p_block, p_count;
842 int i, count, done = 0; 842 int i, count, done = 0;
843 843
844 mlog_entry("(inode = %p, v_block = %llu, nr = %d, bhs = %p, " 844 mlog(0, "(inode = %p, v_block = %llu, nr = %d, bhs = %p, "
845 "flags = %x, validate = %p)\n", 845 "flags = %x, validate = %p)\n",
846 inode, (unsigned long long)v_block, nr, bhs, flags, 846 inode, (unsigned long long)v_block, nr, bhs, flags,
847 validate); 847 validate);
848 848
849 if (((v_block + nr - 1) << inode->i_sb->s_blocksize_bits) >= 849 if (((v_block + nr - 1) << inode->i_sb->s_blocksize_bits) >=
850 i_size_read(inode)) { 850 i_size_read(inode)) {
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index a6651956482e..71375d7b7bbe 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -99,8 +99,8 @@ static int ocfs2_file_open(struct inode *inode, struct file *file)
99 int mode = file->f_flags; 99 int mode = file->f_flags;
100 struct ocfs2_inode_info *oi = OCFS2_I(inode); 100 struct ocfs2_inode_info *oi = OCFS2_I(inode);
101 101
102 mlog_entry("(0x%p, 0x%p, '%.*s')\n", inode, file, 102 mlog(0, "(0x%p, 0x%p, '%.*s')\n", inode, file,
103 file->f_path.dentry->d_name.len, file->f_path.dentry->d_name.name); 103 file->f_path.dentry->d_name.len, file->f_path.dentry->d_name.name);
104 104
105 if (file->f_mode & FMODE_WRITE) 105 if (file->f_mode & FMODE_WRITE)
106 dquot_initialize(inode); 106 dquot_initialize(inode);
@@ -143,9 +143,9 @@ static int ocfs2_file_release(struct inode *inode, struct file *file)
143{ 143{
144 struct ocfs2_inode_info *oi = OCFS2_I(inode); 144 struct ocfs2_inode_info *oi = OCFS2_I(inode);
145 145
146 mlog_entry("(0x%p, 0x%p, '%.*s')\n", inode, file, 146 mlog(0, "(0x%p, 0x%p, '%.*s')\n", inode, file,
147 file->f_path.dentry->d_name.len, 147 file->f_path.dentry->d_name.len,
148 file->f_path.dentry->d_name.name); 148 file->f_path.dentry->d_name.name);
149 149
150 spin_lock(&oi->ip_lock); 150 spin_lock(&oi->ip_lock);
151 if (!--oi->ip_open_count) 151 if (!--oi->ip_open_count)
@@ -177,9 +177,9 @@ static int ocfs2_sync_file(struct file *file, int datasync)
177 struct inode *inode = file->f_mapping->host; 177 struct inode *inode = file->f_mapping->host;
178 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 178 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
179 179
180 mlog_entry("(0x%p, %d, 0x%p, '%.*s')\n", file, datasync, 180 mlog(0, "(0x%p, %d, 0x%p, '%.*s')\n", file, datasync,
181 file->f_path.dentry, file->f_path.dentry->d_name.len, 181 file->f_path.dentry, file->f_path.dentry->d_name.len,
182 file->f_path.dentry->d_name.name); 182 file->f_path.dentry->d_name.name);
183 183
184 if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) { 184 if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) {
185 /* 185 /*
@@ -251,8 +251,6 @@ int ocfs2_update_inode_atime(struct inode *inode,
251 handle_t *handle; 251 handle_t *handle;
252 struct ocfs2_dinode *di = (struct ocfs2_dinode *) bh->b_data; 252 struct ocfs2_dinode *di = (struct ocfs2_dinode *) bh->b_data;
253 253
254 mlog_entry_void();
255
256 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); 254 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
257 if (IS_ERR(handle)) { 255 if (IS_ERR(handle)) {
258 ret = PTR_ERR(handle); 256 ret = PTR_ERR(handle);
@@ -291,7 +289,6 @@ static int ocfs2_set_inode_size(handle_t *handle,
291{ 289{
292 int status; 290 int status;
293 291
294 mlog_entry_void();
295 i_size_write(inode, new_i_size); 292 i_size_write(inode, new_i_size);
296 inode->i_blocks = ocfs2_inode_sector_count(inode); 293 inode->i_blocks = ocfs2_inode_sector_count(inode);
297 inode->i_ctime = inode->i_mtime = CURRENT_TIME; 294 inode->i_ctime = inode->i_mtime = CURRENT_TIME;
@@ -375,8 +372,6 @@ static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb,
375 struct ocfs2_dinode *di; 372 struct ocfs2_dinode *di;
376 u64 cluster_bytes; 373 u64 cluster_bytes;
377 374
378 mlog_entry_void();
379
380 /* 375 /*
381 * We need to CoW the cluster contains the offset if it is reflinked 376 * We need to CoW the cluster contains the offset if it is reflinked
382 * since we will call ocfs2_zero_range_for_truncate later which will 377 * since we will call ocfs2_zero_range_for_truncate later which will
@@ -442,9 +437,9 @@ static int ocfs2_truncate_file(struct inode *inode,
442 struct ocfs2_dinode *fe = NULL; 437 struct ocfs2_dinode *fe = NULL;
443 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 438 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
444 439
445 mlog_entry("(inode = %llu, new_i_size = %llu\n", 440 mlog(0, "(inode = %llu, new_i_size = %llu\n",
446 (unsigned long long)OCFS2_I(inode)->ip_blkno, 441 (unsigned long long)OCFS2_I(inode)->ip_blkno,
447 (unsigned long long)new_i_size); 442 (unsigned long long)new_i_size);
448 443
449 /* We trust di_bh because it comes from ocfs2_inode_lock(), which 444 /* We trust di_bh because it comes from ocfs2_inode_lock(), which
450 * already validated it */ 445 * already validated it */
@@ -578,7 +573,7 @@ static int __ocfs2_extend_allocation(struct inode *inode, u32 logical_start,
578 struct ocfs2_extent_tree et; 573 struct ocfs2_extent_tree et;
579 int did_quota = 0; 574 int did_quota = 0;
580 575
581 mlog_entry("(clusters_to_add = %u)\n", clusters_to_add); 576 mlog(0, "(clusters_to_add = %u)\n", clusters_to_add);
582 577
583 /* 578 /*
584 * This function only exists for file systems which don't 579 * This function only exists for file systems which don't
@@ -1113,8 +1108,8 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
1113 struct dquot *transfer_to[MAXQUOTAS] = { }; 1108 struct dquot *transfer_to[MAXQUOTAS] = { };
1114 int qtype; 1109 int qtype;
1115 1110
1116 mlog_entry("(0x%p, '%.*s')\n", dentry, 1111 mlog(0, "(0x%p, '%.*s')\n", dentry,
1117 dentry->d_name.len, dentry->d_name.name); 1112 dentry->d_name.len, dentry->d_name.name);
1118 1113
1119 /* ensuring we don't even attempt to truncate a symlink */ 1114 /* ensuring we don't even attempt to truncate a symlink */
1120 if (S_ISLNK(inode->i_mode)) 1115 if (S_ISLNK(inode->i_mode))
@@ -1287,8 +1282,6 @@ int ocfs2_getattr(struct vfsmount *mnt,
1287 struct ocfs2_super *osb = sb->s_fs_info; 1282 struct ocfs2_super *osb = sb->s_fs_info;
1288 int err; 1283 int err;
1289 1284
1290 mlog_entry_void();
1291
1292 err = ocfs2_inode_revalidate(dentry); 1285 err = ocfs2_inode_revalidate(dentry);
1293 if (err) { 1286 if (err) {
1294 if (err != -ENOENT) 1287 if (err != -ENOENT)
@@ -1314,8 +1307,6 @@ int ocfs2_permission(struct inode *inode, int mask, unsigned int flags)
1314 if (flags & IPERM_FLAG_RCU) 1307 if (flags & IPERM_FLAG_RCU)
1315 return -ECHILD; 1308 return -ECHILD;
1316 1309
1317 mlog_entry_void();
1318
1319 ret = ocfs2_inode_lock(inode, NULL, 0); 1310 ret = ocfs2_inode_lock(inode, NULL, 0);
1320 if (ret) { 1311 if (ret) {
1321 if (ret != -ENOENT) 1312 if (ret != -ENOENT)
@@ -1339,8 +1330,8 @@ static int __ocfs2_write_remove_suid(struct inode *inode,
1339 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 1330 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
1340 struct ocfs2_dinode *di; 1331 struct ocfs2_dinode *di;
1341 1332
1342 mlog_entry("(Inode %llu, mode 0%o)\n", 1333 mlog(0, "(Inode %llu, mode 0%o)\n",
1343 (unsigned long long)OCFS2_I(inode)->ip_blkno, inode->i_mode); 1334 (unsigned long long)OCFS2_I(inode)->ip_blkno, inode->i_mode);
1344 1335
1345 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); 1336 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
1346 if (IS_ERR(handle)) { 1337 if (IS_ERR(handle)) {
@@ -2233,10 +2224,10 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
2233 int full_coherency = !(osb->s_mount_opt & 2224 int full_coherency = !(osb->s_mount_opt &
2234 OCFS2_MOUNT_COHERENCY_BUFFERED); 2225 OCFS2_MOUNT_COHERENCY_BUFFERED);
2235 2226
2236 mlog_entry("(0x%p, %u, '%.*s')\n", file, 2227 mlog(0, "(0x%p, %u, '%.*s')\n", file,
2237 (unsigned int)nr_segs, 2228 (unsigned int)nr_segs,
2238 file->f_path.dentry->d_name.len, 2229 file->f_path.dentry->d_name.len,
2239 file->f_path.dentry->d_name.name); 2230 file->f_path.dentry->d_name.name);
2240 2231
2241 if (iocb->ki_left == 0) 2232 if (iocb->ki_left == 0)
2242 return 0; 2233 return 0;
@@ -2438,10 +2429,10 @@ static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe,
2438 .u.file = out, 2429 .u.file = out,
2439 }; 2430 };
2440 2431
2441 mlog_entry("(0x%p, 0x%p, %u, '%.*s')\n", out, pipe, 2432 mlog(0, "(0x%p, 0x%p, %u, '%.*s')\n", out, pipe,
2442 (unsigned int)len, 2433 (unsigned int)len,
2443 out->f_path.dentry->d_name.len, 2434 out->f_path.dentry->d_name.len,
2444 out->f_path.dentry->d_name.name); 2435 out->f_path.dentry->d_name.name);
2445 2436
2446 if (pipe->inode) 2437 if (pipe->inode)
2447 mutex_lock_nested(&pipe->inode->i_mutex, I_MUTEX_PARENT); 2438 mutex_lock_nested(&pipe->inode->i_mutex, I_MUTEX_PARENT);
@@ -2498,10 +2489,10 @@ static ssize_t ocfs2_file_splice_read(struct file *in,
2498 int ret = 0, lock_level = 0; 2489 int ret = 0, lock_level = 0;
2499 struct inode *inode = in->f_path.dentry->d_inode; 2490 struct inode *inode = in->f_path.dentry->d_inode;
2500 2491
2501 mlog_entry("(0x%p, 0x%p, %u, '%.*s')\n", in, pipe, 2492 mlog(0, "(0x%p, 0x%p, %u, '%.*s')\n", in, pipe,
2502 (unsigned int)len, 2493 (unsigned int)len,
2503 in->f_path.dentry->d_name.len, 2494 in->f_path.dentry->d_name.len,
2504 in->f_path.dentry->d_name.name); 2495 in->f_path.dentry->d_name.name);
2505 2496
2506 /* 2497 /*
2507 * See the comment in ocfs2_file_aio_read() 2498 * See the comment in ocfs2_file_aio_read()
@@ -2529,10 +2520,10 @@ static ssize_t ocfs2_file_aio_read(struct kiocb *iocb,
2529 struct file *filp = iocb->ki_filp; 2520 struct file *filp = iocb->ki_filp;
2530 struct inode *inode = filp->f_path.dentry->d_inode; 2521 struct inode *inode = filp->f_path.dentry->d_inode;
2531 2522
2532 mlog_entry("(0x%p, %u, '%.*s')\n", filp, 2523 mlog(0, "(0x%p, %u, '%.*s')\n", filp,
2533 (unsigned int)nr_segs, 2524 (unsigned int)nr_segs,
2534 filp->f_path.dentry->d_name.len, 2525 filp->f_path.dentry->d_name.len,
2535 filp->f_path.dentry->d_name.name); 2526 filp->f_path.dentry->d_name.name);
2536 2527
2537 if (!inode) { 2528 if (!inode) {
2538 ret = -EINVAL; 2529 ret = -EINVAL;
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c
index 4068c6c4c6f6..16ee8e96f731 100644
--- a/fs/ocfs2/inode.c
+++ b/fs/ocfs2/inode.c
@@ -131,7 +131,7 @@ struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags,
131 struct super_block *sb = osb->sb; 131 struct super_block *sb = osb->sb;
132 struct ocfs2_find_inode_args args; 132 struct ocfs2_find_inode_args args;
133 133
134 mlog_entry("(blkno = %llu)\n", (unsigned long long)blkno); 134 mlog(0, "(blkno = %llu)\n", (unsigned long long)blkno);
135 135
136 /* Ok. By now we've either got the offsets passed to us by the 136 /* Ok. By now we've either got the offsets passed to us by the
137 * caller, or we just pulled them off the bh. Lets do some 137 * caller, or we just pulled them off the bh. Lets do some
@@ -192,7 +192,7 @@ static int ocfs2_find_actor(struct inode *inode, void *opaque)
192 struct ocfs2_inode_info *oi = OCFS2_I(inode); 192 struct ocfs2_inode_info *oi = OCFS2_I(inode);
193 int ret = 0; 193 int ret = 0;
194 194
195 mlog_entry("(0x%p, %lu, 0x%p)\n", inode, inode->i_ino, opaque); 195 mlog(0, "(0x%p, %lu, 0x%p)\n", inode, inode->i_ino, opaque);
196 196
197 args = opaque; 197 args = opaque;
198 198
@@ -218,7 +218,7 @@ static int ocfs2_init_locked_inode(struct inode *inode, void *opaque)
218 static struct lock_class_key ocfs2_quota_ip_alloc_sem_key, 218 static struct lock_class_key ocfs2_quota_ip_alloc_sem_key,
219 ocfs2_file_ip_alloc_sem_key; 219 ocfs2_file_ip_alloc_sem_key;
220 220
221 mlog_entry("inode = %p, opaque = %p\n", inode, opaque); 221 mlog(0, "inode = %p, opaque = %p\n", inode, opaque);
222 222
223 inode->i_ino = args->fi_ino; 223 inode->i_ino = args->fi_ino;
224 OCFS2_I(inode)->ip_blkno = args->fi_blkno; 224 OCFS2_I(inode)->ip_blkno = args->fi_blkno;
@@ -246,8 +246,8 @@ void ocfs2_populate_inode(struct inode *inode, struct ocfs2_dinode *fe,
246 struct ocfs2_super *osb; 246 struct ocfs2_super *osb;
247 int use_plocks = 1; 247 int use_plocks = 1;
248 248
249 mlog_entry("(0x%p, size:%llu)\n", inode, 249 mlog(0, "(0x%p, size:%llu)\n", inode,
250 (unsigned long long)le64_to_cpu(fe->i_size)); 250 (unsigned long long)le64_to_cpu(fe->i_size));
251 251
252 sb = inode->i_sb; 252 sb = inode->i_sb;
253 osb = OCFS2_SB(sb); 253 osb = OCFS2_SB(sb);
@@ -394,7 +394,7 @@ static int ocfs2_read_locked_inode(struct inode *inode,
394 int status, can_lock; 394 int status, can_lock;
395 u32 generation = 0; 395 u32 generation = 0;
396 396
397 mlog_entry("(0x%p, 0x%p)\n", inode, args); 397 mlog(0, "(0x%p, 0x%p)\n", inode, args);
398 398
399 status = -EINVAL; 399 status = -EINVAL;
400 if (inode == NULL || inode->i_sb == NULL) { 400 if (inode == NULL || inode->i_sb == NULL) {
@@ -551,8 +551,6 @@ static int ocfs2_truncate_for_delete(struct ocfs2_super *osb,
551 struct ocfs2_dinode *fe; 551 struct ocfs2_dinode *fe;
552 handle_t *handle = NULL; 552 handle_t *handle = NULL;
553 553
554 mlog_entry_void();
555
556 fe = (struct ocfs2_dinode *) fe_bh->b_data; 554 fe = (struct ocfs2_dinode *) fe_bh->b_data;
557 555
558 /* 556 /*
@@ -980,7 +978,7 @@ static void ocfs2_delete_inode(struct inode *inode)
980 sigset_t oldset; 978 sigset_t oldset;
981 struct buffer_head *di_bh = NULL; 979 struct buffer_head *di_bh = NULL;
982 980
983 mlog_entry("(inode->i_ino = %lu)\n", inode->i_ino); 981 mlog(0, "(inode->i_ino = %lu)\n", inode->i_ino);
984 982
985 /* When we fail in read_inode() we mark inode as bad. The second test 983 /* When we fail in read_inode() we mark inode as bad. The second test
986 * catches the case when inode allocation fails before allocating 984 * catches the case when inode allocation fails before allocating
@@ -1088,8 +1086,6 @@ static void ocfs2_clear_inode(struct inode *inode)
1088 int status; 1086 int status;
1089 struct ocfs2_inode_info *oi = OCFS2_I(inode); 1087 struct ocfs2_inode_info *oi = OCFS2_I(inode);
1090 1088
1091 mlog_entry_void();
1092
1093 end_writeback(inode); 1089 end_writeback(inode);
1094 mlog(0, "Clearing inode: %llu, nlink = %u\n", 1090 mlog(0, "Clearing inode: %llu, nlink = %u\n",
1095 (unsigned long long)OCFS2_I(inode)->ip_blkno, inode->i_nlink); 1091 (unsigned long long)OCFS2_I(inode)->ip_blkno, inode->i_nlink);
@@ -1204,8 +1200,6 @@ int ocfs2_drop_inode(struct inode *inode)
1204 struct ocfs2_inode_info *oi = OCFS2_I(inode); 1200 struct ocfs2_inode_info *oi = OCFS2_I(inode);
1205 int res; 1201 int res;
1206 1202
1207 mlog_entry_void();
1208
1209 mlog(0, "Drop inode %llu, nlink = %u, ip_flags = 0x%x\n", 1203 mlog(0, "Drop inode %llu, nlink = %u, ip_flags = 0x%x\n",
1210 (unsigned long long)oi->ip_blkno, inode->i_nlink, oi->ip_flags); 1204 (unsigned long long)oi->ip_blkno, inode->i_nlink, oi->ip_flags);
1211 1205
@@ -1226,8 +1220,8 @@ int ocfs2_inode_revalidate(struct dentry *dentry)
1226 struct inode *inode = dentry->d_inode; 1220 struct inode *inode = dentry->d_inode;
1227 int status = 0; 1221 int status = 0;
1228 1222
1229 mlog_entry("(inode = 0x%p, ino = %llu)\n", inode, 1223 mlog(0, "(inode = 0x%p, ino = %llu)\n", inode,
1230 inode ? (unsigned long long)OCFS2_I(inode)->ip_blkno : 0ULL); 1224 inode ? (unsigned long long)OCFS2_I(inode)->ip_blkno : 0ULL);
1231 1225
1232 if (!inode) { 1226 if (!inode) {
1233 mlog(0, "eep, no inode!\n"); 1227 mlog(0, "eep, no inode!\n");
@@ -1271,8 +1265,8 @@ int ocfs2_mark_inode_dirty(handle_t *handle,
1271 int status; 1265 int status;
1272 struct ocfs2_dinode *fe = (struct ocfs2_dinode *) bh->b_data; 1266 struct ocfs2_dinode *fe = (struct ocfs2_dinode *) bh->b_data;
1273 1267
1274 mlog_entry("(inode %llu)\n", 1268 mlog(0, "(inode %llu)\n",
1275 (unsigned long long)OCFS2_I(inode)->ip_blkno); 1269 (unsigned long long)OCFS2_I(inode)->ip_blkno);
1276 1270
1277 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, 1271 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
1278 OCFS2_JOURNAL_ACCESS_WRITE); 1272 OCFS2_JOURNAL_ACCESS_WRITE);
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index faa2303dbf0a..7378277b17a4 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -303,8 +303,6 @@ static int ocfs2_commit_cache(struct ocfs2_super *osb)
303 unsigned int flushed; 303 unsigned int flushed;
304 struct ocfs2_journal *journal = NULL; 304 struct ocfs2_journal *journal = NULL;
305 305
306 mlog_entry_void();
307
308 journal = osb->journal; 306 journal = osb->journal;
309 307
310 /* Flush all pending commits and checkpoint the journal. */ 308 /* Flush all pending commits and checkpoint the journal. */
@@ -425,7 +423,6 @@ int ocfs2_extend_trans(handle_t *handle, int nblocks)
425 return 0; 423 return 0;
426 424
427 old_nblocks = handle->h_buffer_credits; 425 old_nblocks = handle->h_buffer_credits;
428 mlog_entry_void();
429 426
430 mlog(0, "Trying to extend transaction by %d blocks\n", nblocks); 427 mlog(0, "Trying to extend transaction by %d blocks\n", nblocks);
431 428
@@ -622,12 +619,12 @@ static int __ocfs2_journal_access(handle_t *handle,
622 BUG_ON(!handle); 619 BUG_ON(!handle);
623 BUG_ON(!bh); 620 BUG_ON(!bh);
624 621
625 mlog_entry("bh->b_blocknr=%llu, type=%d (\"%s\"), bh->b_size = %zu\n", 622 mlog(0, "bh->b_blocknr=%llu, type=%d (\"%s\"), bh->b_size = %zu\n",
626 (unsigned long long)bh->b_blocknr, type, 623 (unsigned long long)bh->b_blocknr, type,
627 (type == OCFS2_JOURNAL_ACCESS_CREATE) ? 624 (type == OCFS2_JOURNAL_ACCESS_CREATE) ?
628 "OCFS2_JOURNAL_ACCESS_CREATE" : 625 "OCFS2_JOURNAL_ACCESS_CREATE" :
629 "OCFS2_JOURNAL_ACCESS_WRITE", 626 "OCFS2_JOURNAL_ACCESS_WRITE",
630 bh->b_size); 627 bh->b_size);
631 628
632 /* we can safely remove this assertion after testing. */ 629 /* we can safely remove this assertion after testing. */
633 if (!buffer_uptodate(bh)) { 630 if (!buffer_uptodate(bh)) {
@@ -737,8 +734,8 @@ void ocfs2_journal_dirty(handle_t *handle, struct buffer_head *bh)
737{ 734{
738 int status; 735 int status;
739 736
740 mlog_entry("(bh->b_blocknr=%llu)\n", 737 mlog(0, "(bh->b_blocknr=%llu)\n",
741 (unsigned long long)bh->b_blocknr); 738 (unsigned long long)bh->b_blocknr);
742 739
743 status = jbd2_journal_dirty_metadata(handle, bh); 740 status = jbd2_journal_dirty_metadata(handle, bh);
744 BUG_ON(status); 741 BUG_ON(status);
@@ -775,8 +772,6 @@ int ocfs2_journal_init(struct ocfs2_journal *journal, int *dirty)
775 struct ocfs2_super *osb; 772 struct ocfs2_super *osb;
776 int inode_lock = 0; 773 int inode_lock = 0;
777 774
778 mlog_entry_void();
779
780 BUG_ON(!journal); 775 BUG_ON(!journal);
781 776
782 osb = journal->j_osb; 777 osb = journal->j_osb;
@@ -882,8 +877,6 @@ static int ocfs2_journal_toggle_dirty(struct ocfs2_super *osb,
882 struct buffer_head *bh = journal->j_bh; 877 struct buffer_head *bh = journal->j_bh;
883 struct ocfs2_dinode *fe; 878 struct ocfs2_dinode *fe;
884 879
885 mlog_entry_void();
886
887 fe = (struct ocfs2_dinode *)bh->b_data; 880 fe = (struct ocfs2_dinode *)bh->b_data;
888 881
889 /* The journal bh on the osb always comes from ocfs2_journal_init() 882 /* The journal bh on the osb always comes from ocfs2_journal_init()
@@ -921,8 +914,6 @@ void ocfs2_journal_shutdown(struct ocfs2_super *osb)
921 struct inode *inode = NULL; 914 struct inode *inode = NULL;
922 int num_running_trans = 0; 915 int num_running_trans = 0;
923 916
924 mlog_entry_void();
925
926 BUG_ON(!osb); 917 BUG_ON(!osb);
927 918
928 journal = osb->journal; 919 journal = osb->journal;
@@ -1024,8 +1015,6 @@ int ocfs2_journal_load(struct ocfs2_journal *journal, int local, int replayed)
1024 int status = 0; 1015 int status = 0;
1025 struct ocfs2_super *osb; 1016 struct ocfs2_super *osb;
1026 1017
1027 mlog_entry_void();
1028
1029 BUG_ON(!journal); 1018 BUG_ON(!journal);
1030 1019
1031 osb = journal->j_osb; 1020 osb = journal->j_osb;
@@ -1070,8 +1059,6 @@ int ocfs2_journal_wipe(struct ocfs2_journal *journal, int full)
1070{ 1059{
1071 int status; 1060 int status;
1072 1061
1073 mlog_entry_void();
1074
1075 BUG_ON(!journal); 1062 BUG_ON(!journal);
1076 1063
1077 status = jbd2_journal_wipe(journal->j_journal, full); 1064 status = jbd2_journal_wipe(journal->j_journal, full);
@@ -1124,8 +1111,6 @@ static int ocfs2_force_read_journal(struct inode *inode)
1124#define CONCURRENT_JOURNAL_FILL 32ULL 1111#define CONCURRENT_JOURNAL_FILL 32ULL
1125 struct buffer_head *bhs[CONCURRENT_JOURNAL_FILL]; 1112 struct buffer_head *bhs[CONCURRENT_JOURNAL_FILL];
1126 1113
1127 mlog_entry_void();
1128
1129 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL); 1114 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL);
1130 1115
1131 num_blocks = ocfs2_blocks_for_bytes(inode->i_sb, inode->i_size); 1116 num_blocks = ocfs2_blocks_for_bytes(inode->i_sb, inode->i_size);
@@ -1194,8 +1179,6 @@ void ocfs2_complete_recovery(struct work_struct *work)
1194 struct ocfs2_quota_recovery *qrec; 1179 struct ocfs2_quota_recovery *qrec;
1195 LIST_HEAD(tmp_la_list); 1180 LIST_HEAD(tmp_la_list);
1196 1181
1197 mlog_entry_void();
1198
1199 mlog(0, "completing recovery from keventd\n"); 1182 mlog(0, "completing recovery from keventd\n");
1200 1183
1201 spin_lock(&journal->j_lock); 1184 spin_lock(&journal->j_lock);
@@ -1339,8 +1322,6 @@ static int __ocfs2_recovery_thread(void *arg)
1339 int rm_quota_used = 0, i; 1322 int rm_quota_used = 0, i;
1340 struct ocfs2_quota_recovery *qrec; 1323 struct ocfs2_quota_recovery *qrec;
1341 1324
1342 mlog_entry_void();
1343
1344 status = ocfs2_wait_on_mount(osb); 1325 status = ocfs2_wait_on_mount(osb);
1345 if (status < 0) { 1326 if (status < 0) {
1346 goto bail; 1327 goto bail;
@@ -1461,8 +1442,8 @@ bail:
1461 1442
1462void ocfs2_recovery_thread(struct ocfs2_super *osb, int node_num) 1443void ocfs2_recovery_thread(struct ocfs2_super *osb, int node_num)
1463{ 1444{
1464 mlog_entry("(node_num=%d, osb->node_num = %d)\n", 1445 mlog(0, "(node_num=%d, osb->node_num = %d)\n",
1465 node_num, osb->node_num); 1446 node_num, osb->node_num);
1466 1447
1467 mutex_lock(&osb->recovery_lock); 1448 mutex_lock(&osb->recovery_lock);
1468 if (osb->disable_recovery) 1449 if (osb->disable_recovery)
@@ -1688,8 +1669,8 @@ static int ocfs2_recover_node(struct ocfs2_super *osb,
1688 struct ocfs2_dinode *la_copy = NULL; 1669 struct ocfs2_dinode *la_copy = NULL;
1689 struct ocfs2_dinode *tl_copy = NULL; 1670 struct ocfs2_dinode *tl_copy = NULL;
1690 1671
1691 mlog_entry("(node_num=%d, slot_num=%d, osb->node_num = %d)\n", 1672 mlog(0, "(node_num=%d, slot_num=%d, osb->node_num = %d)\n",
1692 node_num, slot_num, osb->node_num); 1673 node_num, slot_num, osb->node_num);
1693 1674
1694 /* Should not ever be called to recover ourselves -- in that 1675 /* Should not ever be called to recover ourselves -- in that
1695 * case we should've called ocfs2_journal_load instead. */ 1676 * case we should've called ocfs2_journal_load instead. */
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
index ec6adbf8f551..5f08c703f354 100644
--- a/fs/ocfs2/localalloc.c
+++ b/fs/ocfs2/localalloc.c
@@ -291,8 +291,6 @@ int ocfs2_load_local_alloc(struct ocfs2_super *osb)
291 struct inode *inode = NULL; 291 struct inode *inode = NULL;
292 struct ocfs2_local_alloc *la; 292 struct ocfs2_local_alloc *la;
293 293
294 mlog_entry_void();
295
296 if (osb->local_alloc_bits == 0) 294 if (osb->local_alloc_bits == 0)
297 goto bail; 295 goto bail;
298 296
@@ -388,8 +386,6 @@ void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb)
388 struct ocfs2_dinode *alloc_copy = NULL; 386 struct ocfs2_dinode *alloc_copy = NULL;
389 struct ocfs2_dinode *alloc = NULL; 387 struct ocfs2_dinode *alloc = NULL;
390 388
391 mlog_entry_void();
392
393 cancel_delayed_work(&osb->la_enable_wq); 389 cancel_delayed_work(&osb->la_enable_wq);
394 flush_workqueue(ocfs2_wq); 390 flush_workqueue(ocfs2_wq);
395 391
@@ -502,7 +498,7 @@ int ocfs2_begin_local_alloc_recovery(struct ocfs2_super *osb,
502 struct inode *inode = NULL; 498 struct inode *inode = NULL;
503 struct ocfs2_dinode *alloc; 499 struct ocfs2_dinode *alloc;
504 500
505 mlog_entry("(slot_num = %d)\n", slot_num); 501 mlog(0, "(slot_num = %d)\n", slot_num);
506 502
507 *alloc_copy = NULL; 503 *alloc_copy = NULL;
508 504
@@ -570,8 +566,6 @@ int ocfs2_complete_local_alloc_recovery(struct ocfs2_super *osb,
570 struct buffer_head *main_bm_bh = NULL; 566 struct buffer_head *main_bm_bh = NULL;
571 struct inode *main_bm_inode; 567 struct inode *main_bm_inode;
572 568
573 mlog_entry_void();
574
575 main_bm_inode = ocfs2_get_system_file_inode(osb, 569 main_bm_inode = ocfs2_get_system_file_inode(osb,
576 GLOBAL_BITMAP_SYSTEM_INODE, 570 GLOBAL_BITMAP_SYSTEM_INODE,
577 OCFS2_INVALID_SLOT); 571 OCFS2_INVALID_SLOT);
@@ -640,8 +634,6 @@ int ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb,
640 struct inode *local_alloc_inode; 634 struct inode *local_alloc_inode;
641 unsigned int free_bits; 635 unsigned int free_bits;
642 636
643 mlog_entry_void();
644
645 BUG_ON(!ac); 637 BUG_ON(!ac);
646 638
647 local_alloc_inode = 639 local_alloc_inode =
@@ -749,7 +741,6 @@ int ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb,
749 struct ocfs2_dinode *alloc; 741 struct ocfs2_dinode *alloc;
750 struct ocfs2_local_alloc *la; 742 struct ocfs2_local_alloc *la;
751 743
752 mlog_entry_void();
753 BUG_ON(ac->ac_which != OCFS2_AC_USE_LOCAL); 744 BUG_ON(ac->ac_which != OCFS2_AC_USE_LOCAL);
754 745
755 local_alloc_inode = ac->ac_inode; 746 local_alloc_inode = ac->ac_inode;
@@ -799,8 +790,6 @@ static u32 ocfs2_local_alloc_count_bits(struct ocfs2_dinode *alloc)
799 u32 count = 0; 790 u32 count = 0;
800 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc); 791 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc);
801 792
802 mlog_entry_void();
803
804 buffer = la->la_bitmap; 793 buffer = la->la_bitmap;
805 for (i = 0; i < le16_to_cpu(la->la_size); i++) 794 for (i = 0; i < le16_to_cpu(la->la_size); i++)
806 count += hweight8(buffer[i]); 795 count += hweight8(buffer[i]);
@@ -820,7 +809,7 @@ static int ocfs2_local_alloc_find_clear_bits(struct ocfs2_super *osb,
820 void *bitmap = NULL; 809 void *bitmap = NULL;
821 struct ocfs2_reservation_map *resmap = &osb->osb_la_resmap; 810 struct ocfs2_reservation_map *resmap = &osb->osb_la_resmap;
822 811
823 mlog_entry("(numbits wanted = %u)\n", *numbits); 812 mlog(0, "(numbits wanted = %u)\n", *numbits);
824 813
825 if (!alloc->id1.bitmap1.i_total) { 814 if (!alloc->id1.bitmap1.i_total) {
826 mlog(0, "No bits in my window!\n"); 815 mlog(0, "No bits in my window!\n");
@@ -903,7 +892,6 @@ static void ocfs2_clear_local_alloc(struct ocfs2_dinode *alloc)
903{ 892{
904 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc); 893 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc);
905 int i; 894 int i;
906 mlog_entry_void();
907 895
908 alloc->id1.bitmap1.i_total = 0; 896 alloc->id1.bitmap1.i_total = 0;
909 alloc->id1.bitmap1.i_used = 0; 897 alloc->id1.bitmap1.i_used = 0;
@@ -952,9 +940,9 @@ static int ocfs2_sync_local_to_main(struct ocfs2_super *osb,
952 void *bitmap; 940 void *bitmap;
953 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc); 941 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc);
954 942
955 mlog_entry("total = %u, used = %u\n", 943 mlog(0, "total = %u, used = %u\n",
956 le32_to_cpu(alloc->id1.bitmap1.i_total), 944 le32_to_cpu(alloc->id1.bitmap1.i_total),
957 le32_to_cpu(alloc->id1.bitmap1.i_used)); 945 le32_to_cpu(alloc->id1.bitmap1.i_used));
958 946
959 if (!alloc->id1.bitmap1.i_total) { 947 if (!alloc->id1.bitmap1.i_total) {
960 mlog(0, "nothing to sync!\n"); 948 mlog(0, "nothing to sync!\n");
@@ -1148,8 +1136,6 @@ static int ocfs2_local_alloc_new_window(struct ocfs2_super *osb,
1148 struct ocfs2_dinode *alloc = NULL; 1136 struct ocfs2_dinode *alloc = NULL;
1149 struct ocfs2_local_alloc *la; 1137 struct ocfs2_local_alloc *la;
1150 1138
1151 mlog_entry_void();
1152
1153 alloc = (struct ocfs2_dinode *) osb->local_alloc_bh->b_data; 1139 alloc = (struct ocfs2_dinode *) osb->local_alloc_bh->b_data;
1154 la = OCFS2_LOCAL_ALLOC(alloc); 1140 la = OCFS2_LOCAL_ALLOC(alloc);
1155 1141
@@ -1243,8 +1229,6 @@ static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb,
1243 struct ocfs2_dinode *alloc_copy = NULL; 1229 struct ocfs2_dinode *alloc_copy = NULL;
1244 struct ocfs2_alloc_context *ac = NULL; 1230 struct ocfs2_alloc_context *ac = NULL;
1245 1231
1246 mlog_entry_void();
1247
1248 ocfs2_recalc_la_window(osb, OCFS2_LA_EVENT_SLIDE); 1232 ocfs2_recalc_la_window(osb, OCFS2_LA_EVENT_SLIDE);
1249 1233
1250 /* This will lock the main bitmap for us. */ 1234 /* This will lock the main bitmap for us. */
diff --git a/fs/ocfs2/mmap.c b/fs/ocfs2/mmap.c
index 7e32db9c2c99..87438e178e11 100644
--- a/fs/ocfs2/mmap.c
+++ b/fs/ocfs2/mmap.c
@@ -49,7 +49,7 @@ static int ocfs2_fault(struct vm_area_struct *area, struct vm_fault *vmf)
49 sigset_t oldset; 49 sigset_t oldset;
50 int ret; 50 int ret;
51 51
52 mlog_entry("(area=%p, page offset=%lu)\n", area, vmf->pgoff); 52 mlog(0, "(area=%p, page offset=%lu)\n", area, vmf->pgoff);
53 53
54 ocfs2_block_signals(&oldset); 54 ocfs2_block_signals(&oldset);
55 ret = filemap_fault(area, vmf); 55 ret = filemap_fault(area, vmf);
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 849fb4a2e814..fdf5c0b75caa 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -106,8 +106,8 @@ static struct dentry *ocfs2_lookup(struct inode *dir, struct dentry *dentry,
106 struct dentry *ret; 106 struct dentry *ret;
107 struct ocfs2_inode_info *oi; 107 struct ocfs2_inode_info *oi;
108 108
109 mlog_entry("(0x%p, 0x%p, '%.*s')\n", dir, dentry, 109 mlog(0, "(0x%p, 0x%p, '%.*s')\n", dir, dentry,
110 dentry->d_name.len, dentry->d_name.name); 110 dentry->d_name.len, dentry->d_name.name);
111 111
112 if (dentry->d_name.len > OCFS2_MAX_FILENAME_LEN) { 112 if (dentry->d_name.len > OCFS2_MAX_FILENAME_LEN) {
113 ret = ERR_PTR(-ENAMETOOLONG); 113 ret = ERR_PTR(-ENAMETOOLONG);
@@ -235,9 +235,9 @@ static int ocfs2_mknod(struct inode *dir,
235 sigset_t oldset; 235 sigset_t oldset;
236 int did_block_signals = 0; 236 int did_block_signals = 0;
237 237
238 mlog_entry("(0x%p, 0x%p, %d, %lu, '%.*s')\n", dir, dentry, mode, 238 mlog(0, "(0x%p, 0x%p, %d, %lu, '%.*s')\n", dir, dentry, mode,
239 (unsigned long)dev, dentry->d_name.len, 239 (unsigned long)dev, dentry->d_name.len,
240 dentry->d_name.name); 240 dentry->d_name.name);
241 241
242 dquot_initialize(dir); 242 dquot_initialize(dir);
243 243
@@ -354,9 +354,9 @@ static int ocfs2_mknod(struct inode *dir,
354 goto leave; 354 goto leave;
355 did_quota_inode = 1; 355 did_quota_inode = 1;
356 356
357 mlog_entry("(0x%p, 0x%p, %d, %lu, '%.*s')\n", dir, dentry, 357 mlog(0, "(0x%p, 0x%p, %d, %lu, '%.*s')\n", dir, dentry,
358 inode->i_mode, (unsigned long)dev, dentry->d_name.len, 358 inode->i_mode, (unsigned long)dev, dentry->d_name.len,
359 dentry->d_name.name); 359 dentry->d_name.name);
360 360
361 /* do the real work now. */ 361 /* do the real work now. */
362 status = ocfs2_mknod_locked(osb, dir, inode, dev, 362 status = ocfs2_mknod_locked(osb, dir, inode, dev,
@@ -615,8 +615,8 @@ static int ocfs2_mkdir(struct inode *dir,
615{ 615{
616 int ret; 616 int ret;
617 617
618 mlog_entry("(0x%p, 0x%p, %d, '%.*s')\n", dir, dentry, mode, 618 mlog(0, "(0x%p, 0x%p, %d, '%.*s')\n", dir, dentry, mode,
619 dentry->d_name.len, dentry->d_name.name); 619 dentry->d_name.len, dentry->d_name.name);
620 ret = ocfs2_mknod(dir, dentry, mode | S_IFDIR, 0); 620 ret = ocfs2_mknod(dir, dentry, mode | S_IFDIR, 0);
621 mlog_exit(ret); 621 mlog_exit(ret);
622 622
@@ -630,8 +630,8 @@ static int ocfs2_create(struct inode *dir,
630{ 630{
631 int ret; 631 int ret;
632 632
633 mlog_entry("(0x%p, 0x%p, %d, '%.*s')\n", dir, dentry, mode, 633 mlog(0, "(0x%p, 0x%p, %d, '%.*s')\n", dir, dentry, mode,
634 dentry->d_name.len, dentry->d_name.name); 634 dentry->d_name.len, dentry->d_name.name);
635 ret = ocfs2_mknod(dir, dentry, mode | S_IFREG, 0); 635 ret = ocfs2_mknod(dir, dentry, mode | S_IFREG, 0);
636 mlog_exit(ret); 636 mlog_exit(ret);
637 637
@@ -652,9 +652,9 @@ static int ocfs2_link(struct dentry *old_dentry,
652 struct ocfs2_dir_lookup_result lookup = { NULL, }; 652 struct ocfs2_dir_lookup_result lookup = { NULL, };
653 sigset_t oldset; 653 sigset_t oldset;
654 654
655 mlog_entry("(inode=%lu, old='%.*s' new='%.*s')\n", inode->i_ino, 655 mlog(0, "(inode=%lu, old='%.*s' new='%.*s')\n", inode->i_ino,
656 old_dentry->d_name.len, old_dentry->d_name.name, 656 old_dentry->d_name.len, old_dentry->d_name.name,
657 dentry->d_name.len, dentry->d_name.name); 657 dentry->d_name.len, dentry->d_name.name);
658 658
659 if (S_ISDIR(inode->i_mode)) 659 if (S_ISDIR(inode->i_mode))
660 return -EPERM; 660 return -EPERM;
@@ -809,8 +809,8 @@ static int ocfs2_unlink(struct inode *dir,
809 struct ocfs2_dir_lookup_result lookup = { NULL, }; 809 struct ocfs2_dir_lookup_result lookup = { NULL, };
810 struct ocfs2_dir_lookup_result orphan_insert = { NULL, }; 810 struct ocfs2_dir_lookup_result orphan_insert = { NULL, };
811 811
812 mlog_entry("(0x%p, 0x%p, '%.*s')\n", dir, dentry, 812 mlog(0, "(0x%p, 0x%p, '%.*s')\n", dir, dentry,
813 dentry->d_name.len, dentry->d_name.name); 813 dentry->d_name.len, dentry->d_name.name);
814 814
815 dquot_initialize(dir); 815 dquot_initialize(dir);
816 816
@@ -975,9 +975,9 @@ static int ocfs2_double_lock(struct ocfs2_super *osb,
975 struct buffer_head **tmpbh; 975 struct buffer_head **tmpbh;
976 struct inode *tmpinode; 976 struct inode *tmpinode;
977 977
978 mlog_entry("(inode1 = %llu, inode2 = %llu)\n", 978 mlog(0, "(inode1 = %llu, inode2 = %llu)\n",
979 (unsigned long long)oi1->ip_blkno, 979 (unsigned long long)oi1->ip_blkno,
980 (unsigned long long)oi2->ip_blkno); 980 (unsigned long long)oi2->ip_blkno);
981 981
982 if (*bh1) 982 if (*bh1)
983 *bh1 = NULL; 983 *bh1 = NULL;
@@ -1067,10 +1067,10 @@ static int ocfs2_rename(struct inode *old_dir,
1067 /* At some point it might be nice to break this function up a 1067 /* At some point it might be nice to break this function up a
1068 * bit. */ 1068 * bit. */
1069 1069
1070 mlog_entry("(0x%p, 0x%p, 0x%p, 0x%p, from='%.*s' to='%.*s')\n", 1070 mlog(0, "(0x%p, 0x%p, 0x%p, 0x%p, from='%.*s' to='%.*s')\n",
1071 old_dir, old_dentry, new_dir, new_dentry, 1071 old_dir, old_dentry, new_dir, new_dentry,
1072 old_dentry->d_name.len, old_dentry->d_name.name, 1072 old_dentry->d_name.len, old_dentry->d_name.name,
1073 new_dentry->d_name.len, new_dentry->d_name.name); 1073 new_dentry->d_name.len, new_dentry->d_name.name);
1074 1074
1075 dquot_initialize(old_dir); 1075 dquot_initialize(old_dir);
1076 dquot_initialize(new_dir); 1076 dquot_initialize(new_dir);
@@ -1501,9 +1501,9 @@ static int ocfs2_create_symlink_data(struct ocfs2_super *osb,
1501 * write i_size + 1 bytes. */ 1501 * write i_size + 1 bytes. */
1502 blocks = (bytes_left + sb->s_blocksize - 1) >> sb->s_blocksize_bits; 1502 blocks = (bytes_left + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
1503 1503
1504 mlog_entry("i_blocks = %llu, i_size = %llu, blocks = %d\n", 1504 mlog(0, "i_blocks = %llu, i_size = %llu, blocks = %d\n",
1505 (unsigned long long)inode->i_blocks, 1505 (unsigned long long)inode->i_blocks,
1506 i_size_read(inode), blocks); 1506 i_size_read(inode), blocks);
1507 1507
1508 /* Sanity check -- make sure we're going to fit. */ 1508 /* Sanity check -- make sure we're going to fit. */
1509 if (bytes_left > 1509 if (bytes_left >
@@ -1610,8 +1610,8 @@ static int ocfs2_symlink(struct inode *dir,
1610 sigset_t oldset; 1610 sigset_t oldset;
1611 int did_block_signals = 0; 1611 int did_block_signals = 0;
1612 1612
1613 mlog_entry("(0x%p, 0x%p, symname='%s' actual='%.*s')\n", dir, 1613 mlog(0, "(0x%p, 0x%p, symname='%s' actual='%.*s')\n", dir,
1614 dentry, symname, dentry->d_name.len, dentry->d_name.name); 1614 dentry, symname, dentry->d_name.len, dentry->d_name.name);
1615 1615
1616 dquot_initialize(dir); 1616 dquot_initialize(dir);
1617 1617
@@ -1713,9 +1713,9 @@ static int ocfs2_symlink(struct inode *dir,
1713 goto bail; 1713 goto bail;
1714 did_quota_inode = 1; 1714 did_quota_inode = 1;
1715 1715
1716 mlog_entry("(0x%p, 0x%p, %d, '%.*s')\n", dir, dentry, 1716 mlog(0, "(0x%p, 0x%p, %d, '%.*s')\n", dir, dentry,
1717 inode->i_mode, dentry->d_name.len, 1717 inode->i_mode, dentry->d_name.len,
1718 dentry->d_name.name); 1718 dentry->d_name.name);
1719 1719
1720 status = ocfs2_mknod_locked(osb, dir, inode, 1720 status = ocfs2_mknod_locked(osb, dir, inode,
1721 0, &new_fe_bh, parent_fe_bh, handle, 1721 0, &new_fe_bh, parent_fe_bh, handle,
@@ -1844,8 +1844,6 @@ static int ocfs2_blkno_stringify(u64 blkno, char *name)
1844{ 1844{
1845 int status, namelen; 1845 int status, namelen;
1846 1846
1847 mlog_entry_void();
1848
1849 namelen = snprintf(name, OCFS2_ORPHAN_NAMELEN + 1, "%016llx", 1847 namelen = snprintf(name, OCFS2_ORPHAN_NAMELEN + 1, "%016llx",
1850 (long long)blkno); 1848 (long long)blkno);
1851 if (namelen <= 0) { 1849 if (namelen <= 0) {
@@ -1997,7 +1995,7 @@ static int ocfs2_orphan_add(struct ocfs2_super *osb,
1997 struct ocfs2_dinode *orphan_fe; 1995 struct ocfs2_dinode *orphan_fe;
1998 struct ocfs2_dinode *fe = (struct ocfs2_dinode *) fe_bh->b_data; 1996 struct ocfs2_dinode *fe = (struct ocfs2_dinode *) fe_bh->b_data;
1999 1997
2000 mlog_entry("(inode->i_ino = %lu)\n", inode->i_ino); 1998 mlog(0, "(inode->i_ino = %lu)\n", inode->i_ino);
2001 1999
2002 status = ocfs2_read_inode_block(orphan_dir_inode, &orphan_dir_bh); 2000 status = ocfs2_read_inode_block(orphan_dir_inode, &orphan_dir_bh);
2003 if (status < 0) { 2001 if (status < 0) {
@@ -2078,8 +2076,6 @@ int ocfs2_orphan_del(struct ocfs2_super *osb,
2078 int status = 0; 2076 int status = 0;
2079 struct ocfs2_dir_lookup_result lookup = { NULL, }; 2077 struct ocfs2_dir_lookup_result lookup = { NULL, };
2080 2078
2081 mlog_entry_void();
2082
2083 status = ocfs2_blkno_stringify(OCFS2_I(inode)->ip_blkno, name); 2079 status = ocfs2_blkno_stringify(OCFS2_I(inode)->ip_blkno, name);
2084 if (status < 0) { 2080 if (status < 0) {
2085 mlog_errno(status); 2081 mlog_errno(status);
@@ -2358,8 +2354,8 @@ int ocfs2_mv_orphaned_inode_to_new(struct inode *dir,
2358 struct buffer_head *di_bh = NULL; 2354 struct buffer_head *di_bh = NULL;
2359 struct ocfs2_dir_lookup_result lookup = { NULL, }; 2355 struct ocfs2_dir_lookup_result lookup = { NULL, };
2360 2356
2361 mlog_entry("(0x%p, 0x%p, %.*s')\n", dir, dentry, 2357 mlog(0, "(0x%p, 0x%p, %.*s')\n", dir, dentry,
2362 dentry->d_name.len, dentry->d_name.name); 2358 dentry->d_name.len, dentry->d_name.name);
2363 2359
2364 status = ocfs2_inode_lock(dir, &parent_di_bh, 1); 2360 status = ocfs2_inode_lock(dir, &parent_di_bh, 1);
2365 if (status < 0) { 2361 if (status < 0) {
diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
index 4607923eb24c..33397bd7e1bc 100644
--- a/fs/ocfs2/quota_global.c
+++ b/fs/ocfs2/quota_global.c
@@ -343,8 +343,6 @@ int ocfs2_global_read_info(struct super_block *sb, int type)
343 u64 pcount; 343 u64 pcount;
344 int status; 344 int status;
345 345
346 mlog_entry_void();
347
348 /* Read global header */ 346 /* Read global header */
349 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], 347 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type],
350 OCFS2_INVALID_SLOT); 348 OCFS2_INVALID_SLOT);
@@ -596,7 +594,7 @@ static int ocfs2_sync_dquot_helper(struct dquot *dquot, unsigned long type)
596 struct ocfs2_super *osb = OCFS2_SB(sb); 594 struct ocfs2_super *osb = OCFS2_SB(sb);
597 int status = 0; 595 int status = 0;
598 596
599 mlog_entry("id=%u qtype=%u type=%lu device=%s\n", dquot->dq_id, 597 mlog(0, "id=%u qtype=%u type=%lu device=%s\n", dquot->dq_id,
600 dquot->dq_type, type, sb->s_id); 598 dquot->dq_type, type, sb->s_id);
601 if (type != dquot->dq_type) 599 if (type != dquot->dq_type)
602 goto out; 600 goto out;
@@ -649,7 +647,7 @@ static int ocfs2_write_dquot(struct dquot *dquot)
649 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); 647 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb);
650 int status = 0; 648 int status = 0;
651 649
652 mlog_entry("id=%u, type=%d", dquot->dq_id, dquot->dq_type); 650 mlog(0, "id=%u, type=%d", dquot->dq_id, dquot->dq_type);
653 651
654 handle = ocfs2_start_trans(osb, OCFS2_QWRITE_CREDITS); 652 handle = ocfs2_start_trans(osb, OCFS2_QWRITE_CREDITS);
655 if (IS_ERR(handle)) { 653 if (IS_ERR(handle)) {
@@ -688,7 +686,7 @@ static int ocfs2_release_dquot(struct dquot *dquot)
688 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); 686 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb);
689 int status = 0; 687 int status = 0;
690 688
691 mlog_entry("id=%u, type=%d", dquot->dq_id, dquot->dq_type); 689 mlog(0, "id=%u, type=%d", dquot->dq_id, dquot->dq_type);
692 690
693 mutex_lock(&dquot->dq_lock); 691 mutex_lock(&dquot->dq_lock);
694 /* Check whether we are not racing with some other dqget() */ 692 /* Check whether we are not racing with some other dqget() */
@@ -745,7 +743,7 @@ static int ocfs2_acquire_dquot(struct dquot *dquot)
745 int need_alloc = ocfs2_global_qinit_alloc(sb, type); 743 int need_alloc = ocfs2_global_qinit_alloc(sb, type);
746 handle_t *handle; 744 handle_t *handle;
747 745
748 mlog_entry("id=%u, type=%d", dquot->dq_id, type); 746 mlog(0, "id=%u, type=%d", dquot->dq_id, type);
749 mutex_lock(&dquot->dq_lock); 747 mutex_lock(&dquot->dq_lock);
750 /* 748 /*
751 * 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
@@ -831,7 +829,7 @@ static int ocfs2_mark_dquot_dirty(struct dquot *dquot)
831 handle_t *handle; 829 handle_t *handle;
832 struct ocfs2_super *osb = OCFS2_SB(sb); 830 struct ocfs2_super *osb = OCFS2_SB(sb);
833 831
834 mlog_entry("id=%u, type=%d", dquot->dq_id, type); 832 mlog(0, "id=%u, type=%d", dquot->dq_id, type);
835 833
836 /* In case user set some limits, sync dquot immediately to global 834 /* In case user set some limits, sync dquot immediately to global
837 * quota file so that information propagates quicker */ 835 * quota file so that information propagates quicker */
@@ -879,8 +877,6 @@ static int ocfs2_write_info(struct super_block *sb, int type)
879 int status = 0; 877 int status = 0;
880 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv; 878 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv;
881 879
882 mlog_entry_void();
883
884 status = ocfs2_lock_global_qf(oinfo, 1); 880 status = ocfs2_lock_global_qf(oinfo, 1);
885 if (status < 0) 881 if (status < 0)
886 goto out; 882 goto out;
diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c
index dc78764ccc4c..a71d68d88667 100644
--- a/fs/ocfs2/quota_local.c
+++ b/fs/ocfs2/quota_local.c
@@ -475,7 +475,7 @@ static int ocfs2_recover_local_quota_file(struct inode *lqinode,
475 struct ocfs2_recovery_chunk *rchunk, *next; 475 struct ocfs2_recovery_chunk *rchunk, *next;
476 qsize_t spacechange, inodechange; 476 qsize_t spacechange, inodechange;
477 477
478 mlog_entry("ino=%lu type=%u", (unsigned long)lqinode->i_ino, type); 478 mlog(0, "ino=%lu type=%u", (unsigned long)lqinode->i_ino, type);
479 479
480 list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) { 480 list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) {
481 chunk = rchunk->rc_chunk; 481 chunk = rchunk->rc_chunk;
diff --git a/fs/ocfs2/resize.c b/fs/ocfs2/resize.c
index dacd553d8617..e4a50e3fcb80 100644
--- a/fs/ocfs2/resize.c
+++ b/fs/ocfs2/resize.c
@@ -103,8 +103,8 @@ static int ocfs2_update_last_group_and_inode(handle_t *handle,
103 u16 cl_bpc = le16_to_cpu(cl->cl_bpc); 103 u16 cl_bpc = le16_to_cpu(cl->cl_bpc);
104 u16 cl_cpg = le16_to_cpu(cl->cl_cpg); 104 u16 cl_cpg = le16_to_cpu(cl->cl_cpg);
105 105
106 mlog_entry("(new_clusters=%d, first_new_cluster = %u)\n", 106 mlog(0, "(new_clusters=%d, first_new_cluster = %u)\n",
107 new_clusters, first_new_cluster); 107 new_clusters, first_new_cluster);
108 108
109 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(bm_inode), 109 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(bm_inode),
110 group_bh, OCFS2_JOURNAL_ACCESS_WRITE); 110 group_bh, OCFS2_JOURNAL_ACCESS_WRITE);
@@ -281,8 +281,6 @@ int ocfs2_group_extend(struct inode * inode, int new_clusters)
281 u32 first_new_cluster; 281 u32 first_new_cluster;
282 u64 lgd_blkno; 282 u64 lgd_blkno;
283 283
284 mlog_entry_void();
285
286 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) 284 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb))
287 return -EROFS; 285 return -EROFS;
288 286
@@ -472,8 +470,6 @@ int ocfs2_group_add(struct inode *inode, struct ocfs2_new_group_input *input)
472 struct ocfs2_chain_rec *cr; 470 struct ocfs2_chain_rec *cr;
473 u16 cl_bpc; 471 u16 cl_bpc;
474 472
475 mlog_entry_void();
476
477 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) 473 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb))
478 return -EROFS; 474 return -EROFS;
479 475
diff --git a/fs/ocfs2/slot_map.c b/fs/ocfs2/slot_map.c
index ab4e0172cc1d..a6016e6b3ca2 100644
--- a/fs/ocfs2/slot_map.c
+++ b/fs/ocfs2/slot_map.c
@@ -475,8 +475,6 @@ int ocfs2_find_slot(struct ocfs2_super *osb)
475 int slot; 475 int slot;
476 struct ocfs2_slot_info *si; 476 struct ocfs2_slot_info *si;
477 477
478 mlog_entry_void();
479
480 si = osb->slot_info; 478 si = osb->slot_info;
481 479
482 spin_lock(&osb->osb_lock); 480 spin_lock(&osb->osb_lock);
diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c
index 71998d4d61d5..dd618496c2c6 100644
--- a/fs/ocfs2/suballoc.c
+++ b/fs/ocfs2/suballoc.c
@@ -389,8 +389,6 @@ static int ocfs2_block_group_fill(handle_t *handle,
389 struct ocfs2_group_desc *bg = (struct ocfs2_group_desc *) bg_bh->b_data; 389 struct ocfs2_group_desc *bg = (struct ocfs2_group_desc *) bg_bh->b_data;
390 struct super_block * sb = alloc_inode->i_sb; 390 struct super_block * sb = alloc_inode->i_sb;
391 391
392 mlog_entry_void();
393
394 if (((unsigned long long) bg_bh->b_blocknr) != group_blkno) { 392 if (((unsigned long long) bg_bh->b_blocknr) != group_blkno) {
395 ocfs2_error(alloc_inode->i_sb, "group block (%llu) != " 393 ocfs2_error(alloc_inode->i_sb, "group block (%llu) != "
396 "b_blocknr (%llu)", 394 "b_blocknr (%llu)",
@@ -707,8 +705,6 @@ static int ocfs2_block_group_alloc(struct ocfs2_super *osb,
707 705
708 BUG_ON(ocfs2_is_cluster_bitmap(alloc_inode)); 706 BUG_ON(ocfs2_is_cluster_bitmap(alloc_inode));
709 707
710 mlog_entry_void();
711
712 cl = &fe->id2.i_chain; 708 cl = &fe->id2.i_chain;
713 status = ocfs2_reserve_clusters_with_limit(osb, 709 status = ocfs2_reserve_clusters_with_limit(osb,
714 le16_to_cpu(cl->cl_cpg), 710 le16_to_cpu(cl->cl_cpg),
@@ -814,8 +810,6 @@ static int ocfs2_reserve_suballoc_bits(struct ocfs2_super *osb,
814 struct ocfs2_dinode *fe; 810 struct ocfs2_dinode *fe;
815 u32 free_bits; 811 u32 free_bits;
816 812
817 mlog_entry_void();
818
819 alloc_inode = ocfs2_get_system_file_inode(osb, type, slot); 813 alloc_inode = ocfs2_get_system_file_inode(osb, type, slot);
820 if (!alloc_inode) { 814 if (!alloc_inode) {
821 mlog_errno(-EINVAL); 815 mlog_errno(-EINVAL);
@@ -1189,8 +1183,6 @@ static int ocfs2_reserve_clusters_with_limit(struct ocfs2_super *osb,
1189{ 1183{
1190 int status; 1184 int status;
1191 1185
1192 mlog_entry_void();
1193
1194 *ac = kzalloc(sizeof(struct ocfs2_alloc_context), GFP_KERNEL); 1186 *ac = kzalloc(sizeof(struct ocfs2_alloc_context), GFP_KERNEL);
1195 if (!(*ac)) { 1187 if (!(*ac)) {
1196 status = -ENOMEM; 1188 status = -ENOMEM;
@@ -1357,8 +1349,6 @@ static inline int ocfs2_block_group_set_bits(handle_t *handle,
1357 void *bitmap = bg->bg_bitmap; 1349 void *bitmap = bg->bg_bitmap;
1358 int journal_type = OCFS2_JOURNAL_ACCESS_WRITE; 1350 int journal_type = OCFS2_JOURNAL_ACCESS_WRITE;
1359 1351
1360 mlog_entry_void();
1361
1362 /* All callers get the descriptor via 1352 /* All callers get the descriptor via
1363 * ocfs2_read_group_descriptor(). Any corruption is a code bug. */ 1353 * ocfs2_read_group_descriptor(). Any corruption is a code bug. */
1364 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); 1354 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg));
@@ -1888,8 +1878,6 @@ static int ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac,
1888 struct ocfs2_chain_list *cl; 1878 struct ocfs2_chain_list *cl;
1889 struct ocfs2_dinode *fe; 1879 struct ocfs2_dinode *fe;
1890 1880
1891 mlog_entry_void();
1892
1893 BUG_ON(ac->ac_bits_given >= ac->ac_bits_wanted); 1881 BUG_ON(ac->ac_bits_given >= ac->ac_bits_wanted);
1894 BUG_ON(bits_wanted > (ac->ac_bits_wanted - ac->ac_bits_given)); 1882 BUG_ON(bits_wanted > (ac->ac_bits_wanted - ac->ac_bits_given));
1895 BUG_ON(!ac->ac_bh); 1883 BUG_ON(!ac->ac_bh);
@@ -2201,8 +2189,6 @@ int ocfs2_claim_new_inode(handle_t *handle,
2201 int status; 2189 int status;
2202 struct ocfs2_suballoc_result res; 2190 struct ocfs2_suballoc_result res;
2203 2191
2204 mlog_entry_void();
2205
2206 BUG_ON(!ac); 2192 BUG_ON(!ac);
2207 BUG_ON(ac->ac_bits_given != 0); 2193 BUG_ON(ac->ac_bits_given != 0);
2208 BUG_ON(ac->ac_bits_wanted != 1); 2194 BUG_ON(ac->ac_bits_wanted != 1);
@@ -2307,8 +2293,6 @@ int __ocfs2_claim_clusters(handle_t *handle,
2307 struct ocfs2_suballoc_result res = { .sr_blkno = 0, }; 2293 struct ocfs2_suballoc_result res = { .sr_blkno = 0, };
2308 struct ocfs2_super *osb = OCFS2_SB(ac->ac_inode->i_sb); 2294 struct ocfs2_super *osb = OCFS2_SB(ac->ac_inode->i_sb);
2309 2295
2310 mlog_entry_void();
2311
2312 BUG_ON(ac->ac_bits_given >= ac->ac_bits_wanted); 2296 BUG_ON(ac->ac_bits_given >= ac->ac_bits_wanted);
2313 2297
2314 BUG_ON(ac->ac_which != OCFS2_AC_USE_LOCAL 2298 BUG_ON(ac->ac_which != OCFS2_AC_USE_LOCAL
@@ -2392,8 +2376,6 @@ static int ocfs2_block_group_clear_bits(handle_t *handle,
2392 unsigned int tmp; 2376 unsigned int tmp;
2393 struct ocfs2_group_desc *undo_bg = NULL; 2377 struct ocfs2_group_desc *undo_bg = NULL;
2394 2378
2395 mlog_entry_void();
2396
2397 /* The caller got this descriptor from 2379 /* The caller got this descriptor from
2398 * ocfs2_read_group_descriptor(). Any corruption is a code bug. */ 2380 * ocfs2_read_group_descriptor(). Any corruption is a code bug. */
2399 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); 2381 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg));
@@ -2463,8 +2445,6 @@ static int _ocfs2_free_suballoc_bits(handle_t *handle,
2463 struct buffer_head *group_bh = NULL; 2445 struct buffer_head *group_bh = NULL;
2464 struct ocfs2_group_desc *group; 2446 struct ocfs2_group_desc *group;
2465 2447
2466 mlog_entry_void();
2467
2468 /* The alloc_bh comes from ocfs2_free_dinode() or 2448 /* The alloc_bh comes from ocfs2_free_dinode() or
2469 * ocfs2_free_clusters(). The callers have all locked the 2449 * ocfs2_free_clusters(). The callers have all locked the
2470 * allocator and gotten alloc_bh from the lock call. This 2450 * allocator and gotten alloc_bh from the lock call. This
@@ -2556,11 +2536,8 @@ static int _ocfs2_free_clusters(handle_t *handle,
2556 2536
2557 /* You can't ever have a contiguous set of clusters 2537 /* You can't ever have a contiguous set of clusters
2558 * bigger than a block group bitmap so we never have to worry 2538 * bigger than a block group bitmap so we never have to worry
2559 * about looping on them. */ 2539 * about looping on them.
2560 2540 * This is expensive. We can safely remove once this stuff has
2561 mlog_entry_void();
2562
2563 /* This is expensive. We can safely remove once this stuff has
2564 * gotten tested really well. */ 2541 * gotten tested really well. */
2565 BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb, ocfs2_blocks_to_clusters(bitmap_inode->i_sb, start_blk))); 2542 BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb, ocfs2_blocks_to_clusters(bitmap_inode->i_sb, start_blk)));
2566 2543
@@ -2756,7 +2733,7 @@ static int ocfs2_get_suballoc_slot_bit(struct ocfs2_super *osb, u64 blkno,
2756 struct buffer_head *inode_bh = NULL; 2733 struct buffer_head *inode_bh = NULL;
2757 struct ocfs2_dinode *inode_fe; 2734 struct ocfs2_dinode *inode_fe;
2758 2735
2759 mlog_entry("blkno: %llu\n", (unsigned long long)blkno); 2736 mlog(0, "blkno: %llu\n", (unsigned long long)blkno);
2760 2737
2761 /* dirty read disk */ 2738 /* dirty read disk */
2762 status = ocfs2_read_blocks_sync(osb, blkno, 1, &inode_bh); 2739 status = ocfs2_read_blocks_sync(osb, blkno, 1, &inode_bh);
@@ -2816,8 +2793,8 @@ static int ocfs2_test_suballoc_bit(struct ocfs2_super *osb,
2816 u64 bg_blkno; 2793 u64 bg_blkno;
2817 int status; 2794 int status;
2818 2795
2819 mlog_entry("blkno: %llu bit: %u\n", (unsigned long long)blkno, 2796 mlog(0, "blkno: %llu bit: %u\n", (unsigned long long)blkno,
2820 (unsigned int)bit); 2797 (unsigned int)bit);
2821 2798
2822 alloc_di = (struct ocfs2_dinode *)alloc_bh->b_data; 2799 alloc_di = (struct ocfs2_dinode *)alloc_bh->b_data;
2823 if ((bit + 1) > ocfs2_bits_per_group(&alloc_di->id2.i_chain)) { 2800 if ((bit + 1) > ocfs2_bits_per_group(&alloc_di->id2.i_chain)) {
@@ -2869,7 +2846,7 @@ int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res)
2869 struct inode *inode_alloc_inode; 2846 struct inode *inode_alloc_inode;
2870 struct buffer_head *alloc_bh = NULL; 2847 struct buffer_head *alloc_bh = NULL;
2871 2848
2872 mlog_entry("blkno: %llu", (unsigned long long)blkno); 2849 mlog(0, "blkno: %llu", (unsigned long long)blkno);
2873 2850
2874 status = ocfs2_get_suballoc_slot_bit(osb, blkno, &suballoc_slot, 2851 status = ocfs2_get_suballoc_slot_bit(osb, blkno, &suballoc_slot,
2875 &group_blkno, &suballoc_bit); 2852 &group_blkno, &suballoc_bit);
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 36c423fb0635..21c4bfdfd739 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -441,8 +441,6 @@ static int ocfs2_init_global_system_inodes(struct ocfs2_super *osb)
441 int status = 0; 441 int status = 0;
442 int i; 442 int i;
443 443
444 mlog_entry_void();
445
446 new = ocfs2_iget(osb, osb->root_blkno, OCFS2_FI_FLAG_SYSFILE, 0); 444 new = ocfs2_iget(osb, osb->root_blkno, OCFS2_FI_FLAG_SYSFILE, 0);
447 if (IS_ERR(new)) { 445 if (IS_ERR(new)) {
448 status = PTR_ERR(new); 446 status = PTR_ERR(new);
@@ -488,8 +486,6 @@ static int ocfs2_init_local_system_inodes(struct ocfs2_super *osb)
488 int status = 0; 486 int status = 0;
489 int i; 487 int i;
490 488
491 mlog_entry_void();
492
493 for (i = OCFS2_LAST_GLOBAL_SYSTEM_INODE + 1; 489 for (i = OCFS2_LAST_GLOBAL_SYSTEM_INODE + 1;
494 i < NUM_SYSTEM_INODES; 490 i < NUM_SYSTEM_INODES;
495 i++) { 491 i++) {
@@ -517,8 +513,6 @@ static void ocfs2_release_system_inodes(struct ocfs2_super *osb)
517 int i; 513 int i;
518 struct inode *inode; 514 struct inode *inode;
519 515
520 mlog_entry_void();
521
522 for (i = 0; i < NUM_GLOBAL_SYSTEM_INODES; i++) { 516 for (i = 0; i < NUM_GLOBAL_SYSTEM_INODES; i++) {
523 inode = osb->global_system_inodes[i]; 517 inode = osb->global_system_inodes[i];
524 if (inode) { 518 if (inode) {
@@ -1032,7 +1026,7 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
1032 char nodestr[8]; 1026 char nodestr[8];
1033 struct ocfs2_blockcheck_stats stats; 1027 struct ocfs2_blockcheck_stats stats;
1034 1028
1035 mlog_entry("%p, %p, %i", sb, data, silent); 1029 mlog(0, "%p, %p, %i", sb, data, silent);
1036 1030
1037 if (!ocfs2_parse_options(sb, data, &parsed_options, 0)) { 1031 if (!ocfs2_parse_options(sb, data, &parsed_options, 0)) {
1038 status = -EINVAL; 1032 status = -EINVAL;
@@ -1320,8 +1314,8 @@ static int ocfs2_parse_options(struct super_block *sb,
1320 char *p; 1314 char *p;
1321 u32 tmp; 1315 u32 tmp;
1322 1316
1323 mlog_entry("remount: %d, options: \"%s\"\n", is_remount, 1317 mlog(0, "remount: %d, options: \"%s\"\n", is_remount,
1324 options ? options : "(none)"); 1318 options ? options : "(none)");
1325 1319
1326 mopt->commit_interval = 0; 1320 mopt->commit_interval = 0;
1327 mopt->mount_opt = OCFS2_MOUNT_NOINTR; 1321 mopt->mount_opt = OCFS2_MOUNT_NOINTR;
@@ -1629,8 +1623,6 @@ static int __init ocfs2_init(void)
1629{ 1623{
1630 int status; 1624 int status;
1631 1625
1632 mlog_entry_void();
1633
1634 ocfs2_print_version(); 1626 ocfs2_print_version();
1635 1627
1636 status = init_ocfs2_uptodate_cache(); 1628 status = init_ocfs2_uptodate_cache();
@@ -1681,8 +1673,6 @@ leave:
1681 1673
1682static void __exit ocfs2_exit(void) 1674static void __exit ocfs2_exit(void)
1683{ 1675{
1684 mlog_entry_void();
1685
1686 ocfs2_quota_shutdown(); 1676 ocfs2_quota_shutdown();
1687 1677
1688 if (ocfs2_wq) { 1678 if (ocfs2_wq) {
@@ -1705,7 +1695,7 @@ static void __exit ocfs2_exit(void)
1705 1695
1706static void ocfs2_put_super(struct super_block *sb) 1696static void ocfs2_put_super(struct super_block *sb)
1707{ 1697{
1708 mlog_entry("(0x%p)\n", sb); 1698 mlog(0, "(0x%p)\n", sb);
1709 1699
1710 ocfs2_sync_blockdev(sb); 1700 ocfs2_sync_blockdev(sb);
1711 ocfs2_dismount_volume(sb, 0); 1701 ocfs2_dismount_volume(sb, 0);
@@ -1722,7 +1712,7 @@ static int ocfs2_statfs(struct dentry *dentry, struct kstatfs *buf)
1722 struct buffer_head *bh = NULL; 1712 struct buffer_head *bh = NULL;
1723 struct inode *inode = NULL; 1713 struct inode *inode = NULL;
1724 1714
1725 mlog_entry("(%p, %p)\n", dentry->d_sb, buf); 1715 mlog(0, "(%p, %p)\n", dentry->d_sb, buf);
1726 1716
1727 osb = OCFS2_SB(dentry->d_sb); 1717 osb = OCFS2_SB(dentry->d_sb);
1728 1718
@@ -1889,8 +1879,6 @@ static int ocfs2_mount_volume(struct super_block *sb)
1889 int unlock_super = 0; 1879 int unlock_super = 0;
1890 struct ocfs2_super *osb = OCFS2_SB(sb); 1880 struct ocfs2_super *osb = OCFS2_SB(sb);
1891 1881
1892 mlog_entry_void();
1893
1894 if (ocfs2_is_hard_readonly(osb)) 1882 if (ocfs2_is_hard_readonly(osb))
1895 goto leave; 1883 goto leave;
1896 1884
@@ -1945,7 +1933,7 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err)
1945 struct ocfs2_super *osb = NULL; 1933 struct ocfs2_super *osb = NULL;
1946 char nodestr[8]; 1934 char nodestr[8];
1947 1935
1948 mlog_entry("(0x%p)\n", sb); 1936 mlog(0, "(0x%p)\n", sb);
1949 1937
1950 BUG_ON(!sb); 1938 BUG_ON(!sb);
1951 osb = OCFS2_SB(sb); 1939 osb = OCFS2_SB(sb);
@@ -2097,8 +2085,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
2097 struct ocfs2_super *osb; 2085 struct ocfs2_super *osb;
2098 u64 total_blocks; 2086 u64 total_blocks;
2099 2087
2100 mlog_entry_void();
2101
2102 osb = kzalloc(sizeof(struct ocfs2_super), GFP_KERNEL); 2088 osb = kzalloc(sizeof(struct ocfs2_super), GFP_KERNEL);
2103 if (!osb) { 2089 if (!osb) {
2104 status = -ENOMEM; 2090 status = -ENOMEM;
@@ -2403,8 +2389,6 @@ static int ocfs2_verify_volume(struct ocfs2_dinode *di,
2403{ 2389{
2404 int status = -EAGAIN; 2390 int status = -EAGAIN;
2405 2391
2406 mlog_entry_void();
2407
2408 if (memcmp(di->i_signature, OCFS2_SUPER_BLOCK_SIGNATURE, 2392 if (memcmp(di->i_signature, OCFS2_SUPER_BLOCK_SIGNATURE,
2409 strlen(OCFS2_SUPER_BLOCK_SIGNATURE)) == 0) { 2393 strlen(OCFS2_SUPER_BLOCK_SIGNATURE)) == 0) {
2410 /* We have to do a raw check of the feature here */ 2394 /* We have to do a raw check of the feature here */
@@ -2472,8 +2456,6 @@ static int ocfs2_check_volume(struct ocfs2_super *osb)
2472 * recover 2456 * recover
2473 * ourselves. */ 2457 * ourselves. */
2474 2458
2475 mlog_entry_void();
2476
2477 /* Init our journal object. */ 2459 /* Init our journal object. */
2478 status = ocfs2_journal_init(osb->journal, &dirty); 2460 status = ocfs2_journal_init(osb->journal, &dirty);
2479 if (status < 0) { 2461 if (status < 0) {
@@ -2568,8 +2550,6 @@ finally:
2568 */ 2550 */
2569static void ocfs2_delete_osb(struct ocfs2_super *osb) 2551static void ocfs2_delete_osb(struct ocfs2_super *osb)
2570{ 2552{
2571 mlog_entry_void();
2572
2573 /* This function assumes that the caller has the main osb resource */ 2553 /* This function assumes that the caller has the main osb resource */
2574 2554
2575 ocfs2_free_slot_info(osb); 2555 ocfs2_free_slot_info(osb);
diff --git a/fs/ocfs2/symlink.c b/fs/ocfs2/symlink.c
index 9975457c981f..8a81688c57df 100644
--- a/fs/ocfs2/symlink.c
+++ b/fs/ocfs2/symlink.c
@@ -62,8 +62,6 @@ static char *ocfs2_fast_symlink_getlink(struct inode *inode,
62 char *link = NULL; 62 char *link = NULL;
63 struct ocfs2_dinode *fe; 63 struct ocfs2_dinode *fe;
64 64
65 mlog_entry_void();
66
67 status = ocfs2_read_inode_block(inode, bh); 65 status = ocfs2_read_inode_block(inode, bh);
68 if (status < 0) { 66 if (status < 0) {
69 mlog_errno(status); 67 mlog_errno(status);
@@ -88,8 +86,6 @@ static int ocfs2_readlink(struct dentry *dentry,
88 struct buffer_head *bh = NULL; 86 struct buffer_head *bh = NULL;
89 struct inode *inode = dentry->d_inode; 87 struct inode *inode = dentry->d_inode;
90 88
91 mlog_entry_void();
92
93 link = ocfs2_fast_symlink_getlink(inode, &bh); 89 link = ocfs2_fast_symlink_getlink(inode, &bh);
94 if (IS_ERR(link)) { 90 if (IS_ERR(link)) {
95 ret = PTR_ERR(link); 91 ret = PTR_ERR(link);
@@ -117,8 +113,6 @@ static void *ocfs2_fast_follow_link(struct dentry *dentry,
117 struct inode *inode = dentry->d_inode; 113 struct inode *inode = dentry->d_inode;
118 struct buffer_head *bh = NULL; 114 struct buffer_head *bh = NULL;
119 115
120 mlog_entry_void();
121
122 BUG_ON(!ocfs2_inode_is_fast_symlink(inode)); 116 BUG_ON(!ocfs2_inode_is_fast_symlink(inode));
123 target = ocfs2_fast_symlink_getlink(inode, &bh); 117 target = ocfs2_fast_symlink_getlink(inode, &bh);
124 if (IS_ERR(target)) { 118 if (IS_ERR(target)) {
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index 67cd43914641..81f98b7f7502 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -5538,7 +5538,7 @@ static int ocfs2_xattr_set_entry_bucket(struct inode *inode,
5538 int ret; 5538 int ret;
5539 struct ocfs2_xa_loc loc; 5539 struct ocfs2_xa_loc loc;
5540 5540
5541 mlog_entry("Set xattr %s in xattr bucket\n", xi->xi_name); 5541 mlog(0, "Set xattr %s in xattr bucket\n", xi->xi_name);
5542 5542
5543 ocfs2_init_xattr_bucket_xa_loc(&loc, xs->bucket, 5543 ocfs2_init_xattr_bucket_xa_loc(&loc, xs->bucket,
5544 xs->not_found ? NULL : xs->here); 5544 xs->not_found ? NULL : xs->here);
@@ -5581,7 +5581,7 @@ static int ocfs2_xattr_set_entry_index_block(struct inode *inode,
5581{ 5581{
5582 int ret; 5582 int ret;
5583 5583
5584 mlog_entry("Set xattr %s in xattr index block\n", xi->xi_name); 5584 mlog(0, "Set xattr %s in xattr index block\n", xi->xi_name);
5585 5585
5586 ret = ocfs2_xattr_set_entry_bucket(inode, xi, xs, ctxt); 5586 ret = ocfs2_xattr_set_entry_bucket(inode, xi, xs, ctxt);
5587 if (!ret) 5587 if (!ret)