diff options
author | Yongqiang Yang <xiaoqiangnk@gmail.com> | 2012-01-03 23:32:52 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-01-03 23:32:52 -0500 |
commit | 33afdcc5402d0abf70ef2dfb96d0b901d20bcc37 (patch) | |
tree | 1991d90dfed2cab0775bf668a897bcf66681df53 /fs/ext4/ext4.h | |
parent | 28c7bac0091687e6116ebd6c179e154ae4053c90 (diff) | |
download | linux-33afdcc5402d0abf70ef2dfb96d0b901d20bcc37.tar.gz linux-33afdcc5402d0abf70ef2dfb96d0b901d20bcc37.tar.bz2 linux-33afdcc5402d0abf70ef2dfb96d0b901d20bcc37.zip |
ext4: add a function which sets up group blocks of a flex bg
This patch adds a function named setup_new_flex_group_blocks() which
sets up group blocks of a flex bg.
Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 0e43bba049a9..05058e2b7f4f 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -511,6 +511,14 @@ struct ext4_new_group_data { __u32 free_blocks_count; }; +/* Indexes used to index group tables in ext4_new_group_data */ +enum { + BLOCK_BITMAP = 0, /* block bitmap */ + INODE_BITMAP, /* inode bitmap */ + INODE_TABLE, /* inode tables */ + GROUP_TABLE_COUNT, +}; + /* * Flags used by ext4_map_blocks() */ |