projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ext4: fix calculating inode blkcount for non-512 blocksize filesystems
[oweals/u-boot.git]
/
fs
/
ext4
/
ext4_write.c
diff --git
a/fs/ext4/ext4_write.c
b/fs/ext4/ext4_write.c
index 504d23a8956cc157f843de22a9c15e72c2290595..3368bd8c005ae0a343987558c47f08177b30a383 100644
(file)
--- a/
fs/ext4/ext4_write.c
+++ b/
fs/ext4/ext4_write.c
@@
-957,7
+957,7
@@
int ext4fs_write(const char *fname, const char *buffer,
ext4fs_allocate_blocks(file_inode, blocks_remaining,
&blks_reqd_for_file);
file_inode->blockcnt = cpu_to_le32((blks_reqd_for_file * fs->blksz) >>
-
fs->dev_desc->log2blksz
);
+
LOG2_SECTOR_SIZE
);
temp_ptr = zalloc(fs->blksz);
if (!temp_ptr)