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/inode.c | |
parent | 021b65bb1e4e4b625c80bbb82651e5e155721ef3 (diff) | |
download | kernel_goldelico_gta04-5dee54372c1ea15ab482b959634cda8c01b042bd.zip kernel_goldelico_gta04-5dee54372c1ea15ab482b959634cda8c01b042bd.tar.gz kernel_goldelico_gta04-5dee54372c1ea15ab482b959634cda8c01b042bd.tar.bz2 |
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/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index d1c17e4..f9198d7 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -1365,7 +1365,8 @@ static void ext4_print_free_blocks(struct inode *inode) { struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); printk(KERN_CRIT "Total free blocks count %lld\n", - ext4_count_free_blocks(inode->i_sb)); + EXT4_C2B(EXT4_SB(inode->i_sb), + ext4_count_free_clusters(inode->i_sb))); printk(KERN_CRIT "Free/Dirty block details\n"); printk(KERN_CRIT "free_blocks=%lld\n", (long long) EXT4_C2B(EXT4_SB(inode->i_sb), @@ -1451,8 +1452,7 @@ static void mpage_da_map_and_submit(struct mpage_da_data *mpd) if (err == -EAGAIN) goto submit_io; - if (err == -ENOSPC && - ext4_count_free_blocks(sb)) { + if (err == -ENOSPC && ext4_count_free_clusters(sb)) { mpd->retval = err; goto submit_io; } |