From 58a9ecbaf4a2e2754509f52862a8a039b73b3744 Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Thu, 1 Sep 2016 11:21:40 +0200 Subject: 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 --- include/ext_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ext_common.h') 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 -- cgit v1.2.3