diff options
author | Suriyan Ramasami <suriyan.r@gmail.com> | 2014-11-17 14:39:36 -0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-23 06:49:04 -0500 |
commit | 9f12cd0e062614e19734b2ab37842d387457c5e5 (patch) | |
tree | 81a892f216918c8a7904cd8adcc5a485f4f23288 /fs/ext4/ext4_common.h | |
parent | 1ad0b98a067a133c0e8a182649a76a4afd739594 (diff) | |
download | u-boot-imx-9f12cd0e062614e19734b2ab37842d387457c5e5.zip u-boot-imx-9f12cd0e062614e19734b2ab37842d387457c5e5.tar.gz u-boot-imx-9f12cd0e062614e19734b2ab37842d387457c5e5.tar.bz2 |
ext4: Prepare API change for files greater than 2GB
Change the internal EXT4 functions to use loff_t for offsets.
Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
[trini: Update common/spl/spl_ext.c]
Signed-off-by: Tom Rini <trini@ti.com>
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 5fa1719..48fd2ac 100644 --- a/fs/ext4/ext4_common.h +++ b/fs/ext4/ext4_common.h @@ -50,8 +50,8 @@ static inline void *zalloc(size_t size) int ext4fs_read_inode(struct ext2_data *data, int ino, struct ext2_inode *inode); -int ext4fs_read_file(struct ext2fs_node *node, int pos, - unsigned int len, char *buf); +int ext4fs_read_file(struct ext2fs_node *node, loff_t pos, loff_t len, + char *buf, loff_t *actread); int ext4fs_find_file(const char *path, struct ext2fs_node *rootnode, struct ext2fs_node **foundnode, int expecttype); int ext4fs_iterate_dir(struct ext2fs_node *dir, char *name, |