diff options
| author | Michael Walle <[email protected]> | 2016-08-29 10:46:46 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-09-23 09:02:05 -0400 |
| commit | 011bc3342a485345f7136eed20e0477b8cd5580f (patch) | |
| tree | d9d38b45daf42574502b5b01a6162113367732a8 /fs | |
| parent | 58a9ecbaf4a2e2754509f52862a8a039b73b3744 (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 <[email protected]>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/ext4/ext4_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index caec9d45779..cd1bdfe025a 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); |
