aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorLiu Bo <liubo2009@cn.fujitsu.com>2012-07-06 05:31:35 -0400
committerChris Mason <chris.mason@fusionio.com>2012-07-23 16:28:02 -0400
commit799ffc3c31de57d10a4b9abcfbfeea8771acc976 (patch)
tree83c46cc343c35550717b8681183440caeba884b5 /fs/btrfs
parentcf7c1ef6e1fe05864369f59dd516e816b11de7d0 (diff)
Btrfs: add ro notification to dump_space_info
Block group has ro attributes, make dump_space_info show it. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/extent-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 3ca26d84cce5..7843542484c9 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -5825,13 +5825,13 @@ static void dump_space_info(struct btrfs_space_info *info, u64 bytes,
5825again: 5825again:
5826 list_for_each_entry(cache, &info->block_groups[index], list) { 5826 list_for_each_entry(cache, &info->block_groups[index], list) {
5827 spin_lock(&cache->lock); 5827 spin_lock(&cache->lock);
5828 printk(KERN_INFO "block group %llu has %llu bytes, %llu used " 5828 printk(KERN_INFO "block group %llu has %llu bytes, %llu used %llu pinned %llu reserved %s\n",
5829 "%llu pinned %llu reserved\n",
5830 (unsigned long long)cache->key.objectid, 5829 (unsigned long long)cache->key.objectid,
5831 (unsigned long long)cache->key.offset, 5830 (unsigned long long)cache->key.offset,
5832 (unsigned long long)btrfs_block_group_used(&cache->item), 5831 (unsigned long long)btrfs_block_group_used(&cache->item),
5833 (unsigned long long)cache->pinned, 5832 (unsigned long long)cache->pinned,
5834 (unsigned long long)cache->reserved); 5833 (unsigned long long)cache->reserved,
5834 cache->ro ? "[readonly]" : "");
5835 btrfs_dump_free_space(cache, bytes); 5835 btrfs_dump_free_space(cache, bytes);
5836 spin_unlock(&cache->lock); 5836 spin_unlock(&cache->lock);
5837 } 5837 }