aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-09-09 18:42:51 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-09-09 18:42:51 -0400
commitfd034a84e1ea5c8c8d159cd2089c32e792c269b0 (patch)
tree5992d541a005137a57a44921fd1be6311ee841d2 /fs/ext4/ext4.h
parent49f7f9af4bb4d7972f3a35a74877937fec9f622d (diff)
ext4: split out ext4_free_blocks_after_init()
The function ext4_free_blocks_after_init() used to be a #define of ext4_init_block_bitmap(). This actually made it difficult to understand how the function worked, and made it hard make changes to support clusters. So as an initial cleanup, I've separated out the functionality of initializing block bitmap from calculating the number of free blocks in the new block group. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index f7257aa6bf81..b0b7b67e439d 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1763,12 +1763,13 @@ extern struct ext4_group_desc * ext4_get_group_desc(struct super_block * sb,
1763extern int ext4_should_retry_alloc(struct super_block *sb, int *retries); 1763extern int ext4_should_retry_alloc(struct super_block *sb, int *retries);
1764struct buffer_head *ext4_read_block_bitmap(struct super_block *sb, 1764struct buffer_head *ext4_read_block_bitmap(struct super_block *sb,
1765 ext4_group_t block_group); 1765 ext4_group_t block_group);
1766extern unsigned ext4_init_block_bitmap(struct super_block *sb, 1766extern void ext4_init_block_bitmap(struct super_block *sb,
1767 struct buffer_head *bh, 1767 struct buffer_head *bh,
1768 ext4_group_t group, 1768 ext4_group_t group,
1769 struct ext4_group_desc *desc); 1769 struct ext4_group_desc *desc);
1770#define ext4_free_blocks_after_init(sb, group, desc) \ 1770extern unsigned ext4_free_blocks_after_init(struct super_block *sb,
1771 ext4_init_block_bitmap(sb, NULL, group, desc) 1771 ext4_group_t block_group,
1772 struct ext4_group_desc *gdp);
1772ext4_fsblk_t ext4_inode_to_goal_block(struct inode *); 1773ext4_fsblk_t ext4_inode_to_goal_block(struct inode *);
1773 1774
1774/* dir.c */ 1775/* dir.c */