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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user