git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
bec95aa
)
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
author
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 21 Jun 2008 23:43:56 +0000
(16:43 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 21 Jun 2008 23:43:56 +0000
(16:43 -0700)
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
Ext4: Fix online resize block group descriptor corruption
fs/ext4/resize.c
patch
|
blob
|
history
diff --git
a/fs/ext4/resize.c
b/fs/ext4/resize.c
index
9ecb92f
..
9ff7b1c
100644
(file)
--- a/
fs/ext4/resize.c
+++ b/
fs/ext4/resize.c
@@
-855,7
+855,8
@@
int ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input)
*/
/* Update group descriptor block for new group */
- gdp = (struct ext4_group_desc *)primary->b_data + gdb_off;
+ gdp = (struct ext4_group_desc *)((char *)primary->b_data +
+ gdb_off * EXT4_DESC_SIZE(sb));
ext4_block_bitmap_set(sb, gdp, input->block_bitmap); /* LV FIXME */
ext4_inode_bitmap_set(sb, gdp, input->inode_bitmap); /* LV FIXME */