diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2017-03-20 15:35:29 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 08:23:19 +0200 |
commit | c763bba7a0ea5742e5ad0cc29c66492feaad4860 (patch) | |
tree | a029ac2cdb7f6c6d6a13bebbd9e20c1a9e238a69 /fs/ext4/ext4_common.c | |
parent | c738917acb1c603105dfbd02474c26321c75b8df (diff) | |
download | barebox-c763bba7a0ea5742e5ad0cc29c66492feaad4860.tar.gz barebox-c763bba7a0ea5742e5ad0cc29c66492feaad4860.tar.xz |
ext4: fix wrong usage of le32_to_cpu()
This is an adoption of the U-Boot commit
| commit 011bc3342a485345f7136eed20e0477b8cd5580f
| Author: Michael Walle <michael@walle.cc>
| Date: Mon Aug 29 10:46:46 2016 +0200
|
| 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>
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/ext4/ext4_common.c')
-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 f11ca6b327..9cbe3dbb1a 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_common.c @@ -506,7 +506,7 @@ int ext4fs_mount(struct ext_filesystem *fs) 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); |