···590590591591/* End of trace events for fs/ocfs2/localalloc.c. */592592593593+/* Trace events for fs/ocfs2/resize.c. */594594+595595+DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_update_last_group_and_inode);596596+597597+DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_group_extend);598598+599599+DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_group_add);600600+601601+/* End of trace events for fs/ocfs2/resize.c. */602602+593603/* Trace events for fs/ocfs2/suballoc.c. */594604595605DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_group_descriptor);
+7-5
fs/ocfs2/resize.c
···3939#include "super.h"4040#include "sysfile.h"4141#include "uptodate.h"4242+#include "ocfs2_trace.h"42434344#include "buffer_head_io.h"4445#include "suballoc.h"···103102 u16 cl_bpc = le16_to_cpu(cl->cl_bpc);104103 u16 cl_cpg = le16_to_cpu(cl->cl_cpg);105104106106- mlog(0, "(new_clusters=%d, first_new_cluster = %u)\n",107107- new_clusters, first_new_cluster);105105+ trace_ocfs2_update_last_group_and_inode(new_clusters,106106+ first_new_cluster);108107109108 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(bm_inode),110109 group_bh, OCFS2_JOURNAL_ACCESS_WRITE);···341340 goto out_unlock;342341 }343342344344- mlog(0, "extend the last group at %llu, new clusters = %d\n",343343+344344+ trace_ocfs2_group_extend(345345 (unsigned long long)le64_to_cpu(group->bg_blkno), new_clusters);346346347347 handle = ocfs2_start_trans(osb, OCFS2_GROUP_EXTEND_CREDITS);···517515 goto out_unlock;518516 }519517520520- mlog(0, "Add a new group %llu in chain = %u, length = %u\n",521521- (unsigned long long)input->group, input->chain, input->clusters);518518+ trace_ocfs2_group_add((unsigned long long)input->group,519519+ input->chain, input->clusters, input->frees);522520523521 handle = ocfs2_start_trans(osb, OCFS2_GROUP_ADD_CREDITS);524522 if (IS_ERR(handle)) {