diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 19:12:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 19:12:51 -0400 |
commit | cff1dfd767d1ee3c773fd8b57fe310957e5f8abb (patch) | |
tree | ace05de33bb5d1e2062724818d57d89eae66004f /fs/ext4 | |
parent | 5dee54372c1ea15ab482b959634cda8c01b042bd (diff) |
ext4: rename ext4_free_blocks_after_init() to ext4_free_clusters_after_init()
This function really returns the number of clusters after initializing
an uninitalized block bitmap has been initialized.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/balloc.c | 6 | ||||
-rw-r--r-- | fs/ext4/ext4.h | 6 | ||||
-rw-r--r-- | fs/ext4/ialloc.c | 2 | ||||
-rw-r--r-- | fs/ext4/mballoc.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 4f303809e076..3d07c35c7089 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -213,9 +213,9 @@ void ext4_init_block_bitmap(struct super_block *sb, struct buffer_head *bh, | |||
213 | /* Return the number of free blocks in a block group. It is used when | 213 | /* Return the number of free blocks in a block group. It is used when |
214 | * the block bitmap is uninitialized, so we can't just count the bits | 214 | * the block bitmap is uninitialized, so we can't just count the bits |
215 | * in the bitmap. */ | 215 | * in the bitmap. */ |
216 | unsigned ext4_free_blocks_after_init(struct super_block *sb, | 216 | unsigned ext4_free_clusters_after_init(struct super_block *sb, |
217 | ext4_group_t block_group, | 217 | ext4_group_t block_group, |
218 | struct ext4_group_desc *gdp) | 218 | struct ext4_group_desc *gdp) |
219 | { | 219 | { |
220 | return num_clusters_in_group(sb, block_group) - | 220 | return num_clusters_in_group(sb, block_group) - |
221 | ext4_num_overhead_clusters(sb, block_group, gdp); | 221 | ext4_num_overhead_clusters(sb, block_group, gdp); |
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index f6963cd7f709..1473c06e4c94 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1787,9 +1787,9 @@ extern void ext4_init_block_bitmap(struct super_block *sb, | |||
1787 | struct buffer_head *bh, | 1787 | struct buffer_head *bh, |
1788 | ext4_group_t group, | 1788 | ext4_group_t group, |
1789 | struct ext4_group_desc *desc); | 1789 | struct ext4_group_desc *desc); |
1790 | extern unsigned ext4_free_blocks_after_init(struct super_block *sb, | 1790 | extern unsigned ext4_free_clusters_after_init(struct super_block *sb, |
1791 | ext4_group_t block_group, | 1791 | ext4_group_t block_group, |
1792 | struct ext4_group_desc *gdp); | 1792 | struct ext4_group_desc *gdp); |
1793 | extern unsigned ext4_num_base_meta_clusters(struct super_block *sb, | 1793 | extern unsigned ext4_num_base_meta_clusters(struct super_block *sb, |
1794 | ext4_group_t block_group); | 1794 | ext4_group_t block_group); |
1795 | extern unsigned ext4_num_overhead_clusters(struct super_block *sb, | 1795 | extern unsigned ext4_num_overhead_clusters(struct super_block *sb, |
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 71a9c8f3dece..d50a7d5e4726 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -961,7 +961,7 @@ got: | |||
961 | if (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { | 961 | if (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { |
962 | gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); | 962 | gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); |
963 | ext4_free_group_clusters_set(sb, gdp, | 963 | ext4_free_group_clusters_set(sb, gdp, |
964 | ext4_free_blocks_after_init(sb, group, gdp)); | 964 | ext4_free_clusters_after_init(sb, group, gdp)); |
965 | gdp->bg_checksum = ext4_group_desc_csum(sbi, group, | 965 | gdp->bg_checksum = ext4_group_desc_csum(sbi, group, |
966 | gdp); | 966 | gdp); |
967 | } | 967 | } |
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 76db2f12107f..90a3ed7c565c 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -2253,7 +2253,7 @@ int ext4_mb_add_groupinfo(struct super_block *sb, ext4_group_t group, | |||
2253 | */ | 2253 | */ |
2254 | if (desc->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { | 2254 | if (desc->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { |
2255 | meta_group_info[i]->bb_free = | 2255 | meta_group_info[i]->bb_free = |
2256 | ext4_free_blocks_after_init(sb, group, desc); | 2256 | ext4_free_clusters_after_init(sb, group, desc); |
2257 | } else { | 2257 | } else { |
2258 | meta_group_info[i]->bb_free = | 2258 | meta_group_info[i]->bb_free = |
2259 | ext4_free_group_clusters(sb, desc); | 2259 | ext4_free_group_clusters(sb, desc); |
@@ -2840,7 +2840,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac, | |||
2840 | if (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { | 2840 | if (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { |
2841 | gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); | 2841 | gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); |
2842 | ext4_free_group_clusters_set(sb, gdp, | 2842 | ext4_free_group_clusters_set(sb, gdp, |
2843 | ext4_free_blocks_after_init(sb, | 2843 | ext4_free_clusters_after_init(sb, |
2844 | ac->ac_b_ex.fe_group, gdp)); | 2844 | ac->ac_b_ex.fe_group, gdp)); |
2845 | } | 2845 | } |
2846 | len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len; | 2846 | len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len; |