diff options
author | Alexandre Ratchov <alexandre.ratchov@bull.net> | 2006-10-11 04:21:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:18 -0400 |
commit | 0d1ee42f27d30eed1659f3e85bcbbc7b3711f61f (patch) | |
tree | 9477b1b1813e67e9a0a06af13c91a34c23c42bc8 /fs/ext4/balloc.c | |
parent | 18eba7aae080d4a5c0d850ea810e83d11f0a8d77 (diff) |
[PATCH] ext4: allow larger descriptor size
make block group descriptor larger.
Signed-off-by: Alexandre Ratchov <alexandre.ratchov@bull.net>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r-- | fs/ext4/balloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index df77ea891f29..3dacb124b8c8 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -74,10 +74,12 @@ struct ext4_group_desc * ext4_get_group_desc(struct super_block * sb, | |||
74 | return NULL; | 74 | return NULL; |
75 | } | 75 | } |
76 | 76 | ||
77 | desc = (struct ext4_group_desc *) sbi->s_group_desc[group_desc]->b_data; | 77 | desc = (struct ext4_group_desc *)( |
78 | (__u8 *)sbi->s_group_desc[group_desc]->b_data + | ||
79 | offset * EXT4_DESC_SIZE(sb)); | ||
78 | if (bh) | 80 | if (bh) |
79 | *bh = sbi->s_group_desc[group_desc]; | 81 | *bh = sbi->s_group_desc[group_desc]; |
80 | return desc + offset; | 82 | return desc; |
81 | } | 83 | } |
82 | 84 | ||
83 | /** | 85 | /** |