diff options
author | Joel Becker <joel.becker@oracle.com> | 2010-04-13 02:26:12 -0400 |
---|---|---|
committer | Tao Ma <tao.ma@oracle.com> | 2010-04-13 02:26:12 -0400 |
commit | 4cbe4249d6586d5d88ef271e07302407a14c8443 (patch) | |
tree | 907eb8e61e3cf8ababfe1890f2c52ee82eb0e227 /fs/ocfs2/suballoc.c | |
parent | 0467ae954d1843de65e7cf8f706f88fe65cd8418 (diff) |
ocfs2: Define data structures for discontiguous block groups.
Defines the OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG feature bit and modifies
struct ocfs2_group_desc for the feature.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/suballoc.c')
-rw-r--r-- | fs/ocfs2/suballoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c index 667d622b3659..1070f79fa068 100644 --- a/fs/ocfs2/suballoc.c +++ b/fs/ocfs2/suballoc.c | |||
@@ -360,7 +360,7 @@ static int ocfs2_block_group_fill(handle_t *handle, | |||
360 | memset(bg, 0, sb->s_blocksize); | 360 | memset(bg, 0, sb->s_blocksize); |
361 | strcpy(bg->bg_signature, OCFS2_GROUP_DESC_SIGNATURE); | 361 | strcpy(bg->bg_signature, OCFS2_GROUP_DESC_SIGNATURE); |
362 | bg->bg_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); | 362 | bg->bg_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); |
363 | bg->bg_size = cpu_to_le16(ocfs2_group_bitmap_size(sb)); | 363 | bg->bg_size = cpu_to_le16(ocfs2_group_bitmap_size(sb, 1)); |
364 | bg->bg_bits = cpu_to_le16(ocfs2_bits_per_group(cl)); | 364 | bg->bg_bits = cpu_to_le16(ocfs2_bits_per_group(cl)); |
365 | bg->bg_chain = cpu_to_le16(my_chain); | 365 | bg->bg_chain = cpu_to_le16(my_chain); |
366 | bg->bg_next_group = cl->cl_recs[my_chain].c_blkno; | 366 | bg->bg_next_group = cl->cl_recs[my_chain].c_blkno; |