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_journal.h | |
parent | 7f101be314da1f6f612a1b84822f791d6569946b (diff) | |
download | u-boot-58a9ecbaf4a2e2754509f52862a8a039b73b3744.tar.gz |
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_journal.h')
-rw-r--r-- | fs/ext4/ext4_journal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ext4_journal.h b/fs/ext4/ext4_journal.h index d54165ce19..3d05ad5315 100644 --- a/fs/ext4/ext4_journal.h +++ b/fs/ext4/ext4_journal.h @@ -115,8 +115,8 @@ extern struct ext2_data *ext4fs_root; int ext4fs_init_journal(void); int ext4fs_log_gdt(char *gd_table); int ext4fs_check_journal_state(int recovery_flag); -int ext4fs_log_journal(char *journal_buffer, long int blknr); -int ext4fs_put_metadata(char *metadata_buffer, long int blknr); +int ext4fs_log_journal(char *journal_buffer, uint32_t blknr); +int ext4fs_put_metadata(char *metadata_buffer, uint32_t blknr); void ext4fs_update_journal(void); void ext4fs_dump_metadata(void); void ext4fs_push_revoke_blk(char *buffer); |