summaryrefslogtreecommitdiff
path: root/include/ext_common.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2016-09-01 11:21:40 +0200
committerTom Rini <trini@konsulko.com>2016-09-23 09:02:04 -0400
commit58a9ecbaf4a2e2754509f52862a8a039b73b3744 (patch)
tree2cfc4d927684db621cc90f47561bec5e25ee5c8c /include/ext_common.h
parent7f101be314da1f6f612a1b84822f791d6569946b (diff)
ext4: fix endianess problems in ext4 write support
All fields were accessed directly instead of using the proper byte swap functions. Thus, ext4 write support was only usable on little-endian architectures. Fix this. Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'include/ext_common.h')
-rw-r--r--include/ext_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ext_common.h b/include/ext_common.h
index 3220091b98..4cd2aa7b5a 100644
--- a/include/ext_common.h
+++ b/include/ext_common.h
@@ -52,7 +52,7 @@
#define LOG2_BLOCK_SIZE(data) (le32_to_cpu \
(data->sblock.log2_block_size) \
+ EXT2_MIN_BLOCK_LOG_SIZE)
-#define INODE_SIZE_FILESYSTEM(data) (le32_to_cpu \
+#define INODE_SIZE_FILESYSTEM(data) (le16_to_cpu \
(data->sblock.inode_size))
#define EXT2_FT_DIR 2