[Ocfs2-commits] manish commits r2159 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Apr 21 00:36:41 CDT 2005


Author: manish
Signed-off-by: mfasheh
Date: 2005-04-21 00:36:39 -0500 (Thu, 21 Apr 2005)
New Revision: 2159

Modified:
   trunk/fs/ocfs2/super.c
Log:
s_max_nodes is a __u16, so use the appropriate endian conversion function

Signed-off-by: mfasheh


Modified: trunk/fs/ocfs2/super.c
===================================================================
--- trunk/fs/ocfs2/super.c	2005-04-20 23:44:34 UTC (rev 2158)
+++ trunk/fs/ocfs2/super.c	2005-04-21 05:36:39 UTC (rev 2159)
@@ -1076,7 +1076,7 @@
 
 	/* this needs to be done before most other initializations */
 	di = (ocfs2_dinode *) bh->b_data;
-	osb->max_nodes = le32_to_cpu(di->id2.i_super.s_max_nodes);
+	osb->max_nodes = le16_to_cpu(di->id2.i_super.s_max_nodes);
 	if (osb->max_nodes > OCFS2_MAX_NODES) {
 		LOG_ERROR_ARGS("Invalid number of nodes (%u)\n",
 			       osb->max_nodes);
@@ -1331,10 +1331,10 @@
 			LOG_ERROR_STR("bad root_blkno: 0");
 		} else if (!le64_to_cpu(di->id2.i_super.s_system_dir_blkno)) {
 			LOG_ERROR_STR("bad system_dir_blkno: 0");
-		} else if (le32_to_cpu(di->id2.i_super.s_max_nodes) > OCFS2_MAX_NODES) {
+		} else if (le16_to_cpu(di->id2.i_super.s_max_nodes) > OCFS2_MAX_NODES) {
 			LOG_ERROR_ARGS("max_nodes found greater than maximum: "
 				       "found %u, max %u\n",
-				       le32_to_cpu(di->id2.i_super.s_max_nodes),
+				       le16_to_cpu(di->id2.i_super.s_max_nodes),
 				       OCFS2_MAX_NODES);
 		} else {
 			/* found it! */



More information about the Ocfs2-commits mailing list