diff options
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 0ee49757467d..d3c4d323fab5 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -694,7 +694,7 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent) | |||
694 | if (ocfs2_mount_local(osb)) | 694 | if (ocfs2_mount_local(osb)) |
695 | snprintf(nodestr, sizeof(nodestr), "local"); | 695 | snprintf(nodestr, sizeof(nodestr), "local"); |
696 | else | 696 | else |
697 | snprintf(nodestr, sizeof(nodestr), "%d", osb->node_num); | 697 | snprintf(nodestr, sizeof(nodestr), "%u", osb->node_num); |
698 | 698 | ||
699 | printk(KERN_INFO "ocfs2: Mounting device (%s) on (node %s, slot %d) " | 699 | printk(KERN_INFO "ocfs2: Mounting device (%s) on (node %s, slot %d) " |
700 | "with %s data mode.\n", | 700 | "with %s data mode.\n", |
@@ -1145,16 +1145,17 @@ static int ocfs2_fill_local_node_info(struct ocfs2_super *osb) | |||
1145 | * desirable. */ | 1145 | * desirable. */ |
1146 | if (ocfs2_mount_local(osb)) | 1146 | if (ocfs2_mount_local(osb)) |
1147 | osb->node_num = 0; | 1147 | osb->node_num = 0; |
1148 | else | 1148 | else { |
1149 | osb->node_num = o2nm_this_node(); | 1149 | status = ocfs2_cluster_this_node(&osb->node_num); |
1150 | 1150 | if (status < 0) { | |
1151 | if (osb->node_num == O2NM_MAX_NODES) { | 1151 | mlog_errno(status); |
1152 | mlog(ML_ERROR, "could not find this host's node number\n"); | 1152 | mlog(ML_ERROR, |
1153 | status = -ENOENT; | 1153 | "could not find this host's node number\n"); |
1154 | goto bail; | 1154 | goto bail; |
1155 | } | ||
1155 | } | 1156 | } |
1156 | 1157 | ||
1157 | mlog(0, "I am node %d\n", osb->node_num); | 1158 | mlog(0, "I am node %u\n", osb->node_num); |
1158 | 1159 | ||
1159 | status = 0; | 1160 | status = 0; |
1160 | bail: | 1161 | bail: |
@@ -1282,7 +1283,7 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err) | |||
1282 | if (ocfs2_mount_local(osb)) | 1283 | if (ocfs2_mount_local(osb)) |
1283 | snprintf(nodestr, sizeof(nodestr), "local"); | 1284 | snprintf(nodestr, sizeof(nodestr), "local"); |
1284 | else | 1285 | else |
1285 | snprintf(nodestr, sizeof(nodestr), "%d", osb->node_num); | 1286 | snprintf(nodestr, sizeof(nodestr), "%u", osb->node_num); |
1286 | 1287 | ||
1287 | printk(KERN_INFO "ocfs2: Unmounting device (%s) on (node %s)\n", | 1288 | printk(KERN_INFO "ocfs2: Unmounting device (%s) on (node %s)\n", |
1288 | osb->dev_str, nodestr); | 1289 | osb->dev_str, nodestr); |
@@ -1384,7 +1385,6 @@ static int ocfs2_initialize_super(struct super_block *sb, | |||
1384 | 1385 | ||
1385 | osb->s_atime_quantum = OCFS2_DEFAULT_ATIME_QUANTUM; | 1386 | osb->s_atime_quantum = OCFS2_DEFAULT_ATIME_QUANTUM; |
1386 | 1387 | ||
1387 | osb->node_num = O2NM_INVALID_NODE_NUM; | ||
1388 | osb->slot_num = OCFS2_INVALID_SLOT; | 1388 | osb->slot_num = OCFS2_INVALID_SLOT; |
1389 | 1389 | ||
1390 | osb->local_alloc_state = OCFS2_LA_UNUSED; | 1390 | osb->local_alloc_state = OCFS2_LA_UNUSED; |