summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2016-08-29 10:46:46 +0200
committerTom Rini <trini@konsulko.com>2016-09-23 09:02:05 -0400
commit011bc3342a485345f7136eed20e0477b8cd5580f (patch)
treed9d38b45daf42574502b5b01a6162113367732a8 /fs
parent58a9ecbaf4a2e2754509f52862a8a039b73b3744 (diff)
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/ext4_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index caec9d4577..cd1bdfe025 100644
--- a/fs/ext4/ext4_common.c
+++ b/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);