浏览代码

ext4: fix wrong usage of le32_to_cpu()

le32_to_cpu() must only convert the revision_level and not the boolean
result.

Signed-off-by: Michael Walle <michael@walle.cc>
Michael Walle 8 年之前
父节点
当前提交
011bc3342a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/ext4/ext4_common.c

+ 1 - 1
fs/ext4/ext4_common.c

@@ -2273,7 +2273,7 @@ int ext4fs_mount(unsigned part_length)
 		goto fail;
 	}
 
-	if (le32_to_cpu(data->sblock.revision_level == 0))
+	if (le32_to_cpu(data->sblock.revision_level) == 0)
 		fs->inodesz = 128;
 	else
 		fs->inodesz = le16_to_cpu(data->sblock.inode_size);