summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2016-08-29 11:46:46 +0300
committerDongjin Kim <tobetter@gmail.com>2020-02-10 16:44:41 +0300
commite05611ae272200f6f87248e6bc1eaa997aa9f5f5 (patch)
tree5e7b75d1f15e1042898cca35fe971c5f83d8e52a
parent641050931721f5a3ed914cf576e411fd7ab9c8d6 (diff)
downloadu-boot-e05611ae272200f6f87248e6bc1eaa997aa9f5f5.tar.xz
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>
-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 459789be6a..b008f6f03a 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -2276,7 +2276,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);