diff options
author | Michael Walle <michael@walle.cc> | 2016-09-01 11:21:40 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 09:02:04 -0400 |
commit | 58a9ecbaf4a2e2754509f52862a8a039b73b3744 (patch) | |
tree | 2cfc4d927684db621cc90f47561bec5e25ee5c8c /fs/ext4/ext4_common.h | |
parent | 7f101be314da1f6f612a1b84822f791d6569946b (diff) | |
download | u-boot-58a9ecbaf4a2e2754509f52862a8a039b73b3744.zip u-boot-58a9ecbaf4a2e2754509f52862a8a039b73b3744.tar.gz u-boot-58a9ecbaf4a2e2754509f52862a8a039b73b3744.tar.bz2 |
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 'fs/ext4/ext4_common.h')
-rw-r--r-- | fs/ext4/ext4_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ext4_common.h b/fs/ext4/ext4_common.h index 48fd2ac..370a717 100644 --- a/fs/ext4/ext4_common.h +++ b/fs/ext4/ext4_common.h @@ -59,10 +59,10 @@ int ext4fs_iterate_dir(struct ext2fs_node *dir, char *name, #if defined(CONFIG_EXT4_WRITE) uint32_t ext4fs_div_roundup(uint32_t size, uint32_t n); -int ext4fs_checksum_update(unsigned int i); +uint16_t ext4fs_checksum_update(unsigned int i); int ext4fs_get_parent_inode_num(const char *dirname, char *dname, int flags); void ext4fs_update_parent_dentry(char *filename, int *p_ino, int file_type); -long int ext4fs_get_new_blk_no(void); +uint32_t ext4fs_get_new_blk_no(void); int ext4fs_get_new_inode_no(void); void ext4fs_reset_block_bmap(long int blockno, unsigned char *buffer, int index); |