diff options
author | Lukas Czerner <lczerner@redhat.com> | 2013-04-03 23:33:30 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-03 23:33:30 -0400 |
commit | f78ee70db40040e6f38a5134527d4760254d6683 (patch) | |
tree | a209d1c6e1daec1cfe5e3f1d4bdfc09d703949d7 /fs/ext4 | |
parent | be8981be6b820b637c88978b2241738487a98ebf (diff) |
ext4: print more info in ext4_print_free_blocks()
Additionally print i_allocated_meta_blocks information as well.
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/inode.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index addba9e0a1a4..769c656ea3b1 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -1615,22 +1615,25 @@ static void ext4_print_free_blocks(struct inode *inode) | |||
1615 | { | 1615 | { |
1616 | struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); | 1616 | struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); |
1617 | struct super_block *sb = inode->i_sb; | 1617 | struct super_block *sb = inode->i_sb; |
1618 | struct ext4_inode_info *ei = EXT4_I(inode); | ||
1618 | 1619 | ||
1619 | ext4_msg(sb, KERN_CRIT, "Total free blocks count %lld", | 1620 | ext4_msg(sb, KERN_CRIT, "Total free blocks count %lld", |
1620 | EXT4_C2B(EXT4_SB(inode->i_sb), | 1621 | EXT4_C2B(EXT4_SB(inode->i_sb), |
1621 | ext4_count_free_clusters(inode->i_sb))); | 1622 | ext4_count_free_clusters(sb))); |
1622 | ext4_msg(sb, KERN_CRIT, "Free/Dirty block details"); | 1623 | ext4_msg(sb, KERN_CRIT, "Free/Dirty block details"); |
1623 | ext4_msg(sb, KERN_CRIT, "free_blocks=%lld", | 1624 | ext4_msg(sb, KERN_CRIT, "free_blocks=%lld", |
1624 | (long long) EXT4_C2B(EXT4_SB(inode->i_sb), | 1625 | (long long) EXT4_C2B(EXT4_SB(sb), |
1625 | percpu_counter_sum(&sbi->s_freeclusters_counter))); | 1626 | percpu_counter_sum(&sbi->s_freeclusters_counter))); |
1626 | ext4_msg(sb, KERN_CRIT, "dirty_blocks=%lld", | 1627 | ext4_msg(sb, KERN_CRIT, "dirty_blocks=%lld", |
1627 | (long long) EXT4_C2B(EXT4_SB(inode->i_sb), | 1628 | (long long) EXT4_C2B(EXT4_SB(sb), |
1628 | percpu_counter_sum(&sbi->s_dirtyclusters_counter))); | 1629 | percpu_counter_sum(&sbi->s_dirtyclusters_counter))); |
1629 | ext4_msg(sb, KERN_CRIT, "Block reservation details"); | 1630 | ext4_msg(sb, KERN_CRIT, "Block reservation details"); |
1630 | ext4_msg(sb, KERN_CRIT, "i_reserved_data_blocks=%u", | 1631 | ext4_msg(sb, KERN_CRIT, "i_reserved_data_blocks=%u", |
1631 | EXT4_I(inode)->i_reserved_data_blocks); | 1632 | ei->i_reserved_data_blocks); |
1632 | ext4_msg(sb, KERN_CRIT, "i_reserved_meta_blocks=%u", | 1633 | ext4_msg(sb, KERN_CRIT, "i_reserved_meta_blocks=%u", |
1633 | EXT4_I(inode)->i_reserved_meta_blocks); | 1634 | ei->i_reserved_meta_blocks); |
1635 | ext4_msg(sb, KERN_CRIT, "i_allocated_meta_blocks=%u", | ||
1636 | ei->i_allocated_meta_blocks); | ||
1634 | return; | 1637 | return; |
1635 | } | 1638 | } |
1636 | 1639 | ||