Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ocfs2: Remove mlog(0) from fs/ocfs2/suballoc.c

This is the 4th step to remove the debug info of DISK_ALLOC.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>

Tao Ma a5438702 2f73e135

+17 -5
+10
fs/ocfs2/ocfs2_trace.h
··· 590 590 591 591 /* End of trace events for fs/ocfs2/localalloc.c. */ 592 592 593 + /* Trace events for fs/ocfs2/resize.c. */ 594 + 595 + DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_update_last_group_and_inode); 596 + 597 + DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_group_extend); 598 + 599 + DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_group_add); 600 + 601 + /* End of trace events for fs/ocfs2/resize.c. */ 602 + 593 603 /* Trace events for fs/ocfs2/suballoc.c. */ 594 604 595 605 DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_group_descriptor);
+7 -5
fs/ocfs2/resize.c
··· 39 39 #include "super.h" 40 40 #include "sysfile.h" 41 41 #include "uptodate.h" 42 + #include "ocfs2_trace.h" 42 43 43 44 #include "buffer_head_io.h" 44 45 #include "suballoc.h" ··· 103 102 u16 cl_bpc = le16_to_cpu(cl->cl_bpc); 104 103 u16 cl_cpg = le16_to_cpu(cl->cl_cpg); 105 104 106 - mlog(0, "(new_clusters=%d, first_new_cluster = %u)\n", 107 - new_clusters, first_new_cluster); 105 + trace_ocfs2_update_last_group_and_inode(new_clusters, 106 + first_new_cluster); 108 107 109 108 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(bm_inode), 110 109 group_bh, OCFS2_JOURNAL_ACCESS_WRITE); ··· 341 340 goto out_unlock; 342 341 } 343 342 344 - mlog(0, "extend the last group at %llu, new clusters = %d\n", 343 + 344 + trace_ocfs2_group_extend( 345 345 (unsigned long long)le64_to_cpu(group->bg_blkno), new_clusters); 346 346 347 347 handle = ocfs2_start_trans(osb, OCFS2_GROUP_EXTEND_CREDITS); ··· 517 515 goto out_unlock; 518 516 } 519 517 520 - mlog(0, "Add a new group %llu in chain = %u, length = %u\n", 521 - (unsigned long long)input->group, input->chain, input->clusters); 518 + trace_ocfs2_group_add((unsigned long long)input->group, 519 + input->chain, input->clusters, input->frees); 522 520 523 521 handle = ocfs2_start_trans(osb, OCFS2_GROUP_ADD_CREDITS); 524 522 if (IS_ERR(handle)) {