ocfs2: Cleanup message prints

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>

authored by Sunil Mushran and committed by Mark Fasheh 781ee3e2 a43db30c

+20 -18
+7 -7
fs/ocfs2/cluster/tcp.c
··· 396 } 397 398 if (was_valid && !valid) { 399 - mlog(ML_NOTICE, "no longer connected to " SC_NODEF_FMT "\n", 400 - SC_NODEF_ARGS(old_sc)); 401 o2net_complete_nodes_nsw(nn); 402 } 403 ··· 409 * the only way to start connecting again is to down 410 * heartbeat and bring it back up. */ 411 cancel_delayed_work(&nn->nn_connect_expired); 412 - mlog(ML_NOTICE, "%s " SC_NODEF_FMT "\n", 413 - o2nm_this_node() > sc->sc_node->nd_num ? 414 - "connected to" : "accepted connection from", 415 - SC_NODEF_ARGS(sc)); 416 } 417 418 /* trigger the connecting worker func as long as we're not valid, ··· 1280 1281 do_gettimeofday(&now); 1282 1283 - mlog(ML_NOTICE, "connection to " SC_NODEF_FMT " has been idle for 10 " 1284 "seconds, shutting it down.\n", SC_NODEF_ARGS(sc)); 1285 mlog(ML_NOTICE, "here are some times that might help debug the " 1286 "situation: (tmr %ld.%ld now %ld.%ld dr %ld.%ld adv "
··· 396 } 397 398 if (was_valid && !valid) { 399 + printk(KERN_INFO "o2net: no longer connected to " 400 + SC_NODEF_FMT "\n", SC_NODEF_ARGS(old_sc)); 401 o2net_complete_nodes_nsw(nn); 402 } 403 ··· 409 * the only way to start connecting again is to down 410 * heartbeat and bring it back up. */ 411 cancel_delayed_work(&nn->nn_connect_expired); 412 + printk(KERN_INFO "o2net: %s " SC_NODEF_FMT "\n", 413 + o2nm_this_node() > sc->sc_node->nd_num ? 414 + "connected to" : "accepted connection from", 415 + SC_NODEF_ARGS(sc)); 416 } 417 418 /* trigger the connecting worker func as long as we're not valid, ··· 1280 1281 do_gettimeofday(&now); 1282 1283 + printk(KERN_INFO "o2net: connection to " SC_NODEF_FMT " has been idle for 10 " 1284 "seconds, shutting it down.\n", SC_NODEF_ARGS(sc)); 1285 mlog(ML_NOTICE, "here are some times that might help debug the " 1286 "situation: (tmr %ld.%ld now %ld.%ld dr %ld.%ld adv "
+6 -3
fs/ocfs2/dlm/dlmdomain.c
··· 408 409 assert_spin_locked(&dlm->spinlock); 410 411 - mlog(ML_NOTICE, "Nodes in my domain (\"%s\"):\n", dlm->name); 412 413 while ((node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, 414 node + 1)) < O2NM_MAX_NODES) { 415 - mlog(ML_NOTICE, " node %d\n", node); 416 } 417 } 418 419 static int dlm_exit_domain_handler(struct o2net_msg *msg, u32 len, void *data) ··· 430 431 node = exit_msg->node_idx; 432 433 - mlog(0, "Node %u leaves domain %s\n", node, dlm->name); 434 435 spin_lock(&dlm->spinlock); 436 clear_bit(node, dlm->domain_map); ··· 679 set_bit(assert->node_idx, dlm->domain_map); 680 __dlm_set_joining_node(dlm, DLM_LOCK_RES_OWNER_UNKNOWN); 681 682 __dlm_print_nodes(dlm); 683 684 /* notify anything attached to the heartbeat events */
··· 408 409 assert_spin_locked(&dlm->spinlock); 410 411 + printk(KERN_INFO "ocfs2_dlm: Nodes in domain (\"%s\"): ", dlm->name); 412 413 while ((node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, 414 node + 1)) < O2NM_MAX_NODES) { 415 + printk("%d ", node); 416 } 417 + printk("\n"); 418 } 419 420 static int dlm_exit_domain_handler(struct o2net_msg *msg, u32 len, void *data) ··· 429 430 node = exit_msg->node_idx; 431 432 + printk(KERN_INFO "ocfs2_dlm: Node %u leaves domain %s\n", node, dlm->name); 433 434 spin_lock(&dlm->spinlock); 435 clear_bit(node, dlm->domain_map); ··· 678 set_bit(assert->node_idx, dlm->domain_map); 679 __dlm_set_joining_node(dlm, DLM_LOCK_RES_OWNER_UNKNOWN); 680 681 + printk(KERN_INFO "ocfs2_dlm: Node %u joins domain %s\n", 682 + assert->node_idx, dlm->name); 683 __dlm_print_nodes(dlm); 684 685 /* notify anything attached to the heartbeat events */
+7 -8
fs/ocfs2/super.c
··· 642 643 ocfs2_complete_mount_recovery(osb); 644 645 - printk("ocfs2: Mounting device (%u,%u) on (node %d, slot %d) with %s " 646 - "data mode.\n", 647 - MAJOR(sb->s_dev), MINOR(sb->s_dev), osb->node_num, 648 - osb->slot_num, 649 osb->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK ? "writeback" : 650 "ordered"); 651 ··· 1019 goto bail; 1020 } 1021 1022 - mlog(ML_NOTICE, "I am node %d\n", osb->node_num); 1023 1024 status = 0; 1025 bail: ··· 1190 1191 atomic_set(&osb->vol_state, VOLUME_DISMOUNTED); 1192 1193 - printk("ocfs2: Unmounting device (%u,%u) on (node %d)\n", 1194 - MAJOR(osb->sb->s_dev), MINOR(osb->sb->s_dev), osb->node_num); 1195 1196 ocfs2_delete_osb(osb); 1197 kfree(osb); ··· 1326 status = -EINVAL; 1327 goto bail; 1328 } 1329 - mlog(ML_NOTICE, "max_slots for this device: %u\n", osb->max_slots); 1330 1331 init_waitqueue_head(&osb->osb_wipe_event); 1332 osb->osb_orphan_wipes = kcalloc(osb->max_slots,
··· 642 643 ocfs2_complete_mount_recovery(osb); 644 645 + printk(KERN_INFO "ocfs2: Mounting device (%s) on (node %d, slot %d) " 646 + "with %s data mode.\n", 647 + osb->dev_str, osb->node_num, osb->slot_num, 648 osb->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK ? "writeback" : 649 "ordered"); 650 ··· 1020 goto bail; 1021 } 1022 1023 + mlog(0, "I am node %d\n", osb->node_num); 1024 1025 status = 0; 1026 bail: ··· 1191 1192 atomic_set(&osb->vol_state, VOLUME_DISMOUNTED); 1193 1194 + printk(KERN_INFO "ocfs2: Unmounting device (%s) on (node %d)\n", 1195 + osb->dev_str, osb->node_num); 1196 1197 ocfs2_delete_osb(osb); 1198 kfree(osb); ··· 1327 status = -EINVAL; 1328 goto bail; 1329 } 1330 + mlog(0, "max_slots for this device: %u\n", osb->max_slots); 1331 1332 init_waitqueue_head(&osb->osb_wipe_event); 1333 osb->osb_orphan_wipes = kcalloc(osb->max_slots,