diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 19:10:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 19:10:51 -0400 |
commit | 5dee54372c1ea15ab482b959634cda8c01b042bd (patch) | |
tree | 512da0144f6a9f86b5817569d0521b60cddee4c9 /fs/ext4/balloc.c | |
parent | 021b65bb1e4e4b625c80bbb82651e5e155721ef3 (diff) |
ext4: rename ext4_count_free_blocks() to ext4_count_free_clusters()
This function really counts the free clusters reported in the block
group descriptors, so rename it to reduce confusion.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r-- | fs/ext4/balloc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 84dc3d62b40c..4f303809e076 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -524,12 +524,12 @@ ext4_fsblk_t ext4_new_meta_blocks(handle_t *handle, struct inode *inode, | |||
524 | } | 524 | } |
525 | 525 | ||
526 | /** | 526 | /** |
527 | * ext4_count_free_blocks() -- count filesystem free blocks | 527 | * ext4_count_free_clusters() -- count filesystem free clusters |
528 | * @sb: superblock | 528 | * @sb: superblock |
529 | * | 529 | * |
530 | * Adds up the number of free blocks from each block group. | 530 | * Adds up the number of free clusters from each block group. |
531 | */ | 531 | */ |
532 | ext4_fsblk_t ext4_count_free_blocks(struct super_block *sb) | 532 | ext4_fsblk_t ext4_count_free_clusters(struct super_block *sb) |
533 | { | 533 | { |
534 | ext4_fsblk_t desc_count; | 534 | ext4_fsblk_t desc_count; |
535 | struct ext4_group_desc *gdp; | 535 | struct ext4_group_desc *gdp; |
@@ -562,8 +562,9 @@ ext4_fsblk_t ext4_count_free_blocks(struct super_block *sb) | |||
562 | bitmap_count += x; | 562 | bitmap_count += x; |
563 | } | 563 | } |
564 | brelse(bitmap_bh); | 564 | brelse(bitmap_bh); |
565 | printk(KERN_DEBUG "ext4_count_free_blocks: stored = %llu" | 565 | printk(KERN_DEBUG "ext4_count_free_clusters: stored = %llu" |
566 | ", computed = %llu, %llu\n", ext4_free_blocks_count(es), | 566 | ", computed = %llu, %llu\n", |
567 | EXT4_B2C(sbi, ext4_free_blocks_count(es)), | ||
567 | desc_count, bitmap_count); | 568 | desc_count, bitmap_count); |
568 | return bitmap_count; | 569 | return bitmap_count; |
569 | #else | 570 | #else |