diff options
author | Liu Bo <liubo2009@cn.fujitsu.com> | 2012-07-06 03:31:35 -0600 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-07-23 16:28:02 -0400 |
commit | 799ffc3c31de57d10a4b9abcfbfeea8771acc976 (patch) | |
tree | 83c46cc343c35550717b8681183440caeba884b5 /fs/btrfs | |
parent | cf7c1ef6e1fe05864369f59dd516e816b11de7d0 (diff) | |
download | op-kernel-dev-799ffc3c31de57d10a4b9abcfbfeea8771acc976.zip op-kernel-dev-799ffc3c31de57d10a4b9abcfbfeea8771acc976.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 3ca26d8..7843542 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, again: list_for_each_entry(cache, &info->block_groups[index], list) { spin_lock(&cache->lock); - printk(KERN_INFO "block group %llu has %llu bytes, %llu used " - "%llu pinned %llu reserved\n", + printk(KERN_INFO "block group %llu has %llu bytes, %llu used %llu pinned %llu reserved %s\n", (unsigned long long)cache->key.objectid, (unsigned long long)cache->key.offset, (unsigned long long)btrfs_block_group_used(&cache->item), (unsigned long long)cache->pinned, - (unsigned long long)cache->reserved); + (unsigned long long)cache->reserved, + cache->ro ? "[readonly]" : ""); btrfs_dump_free_space(cache, bytes); spin_unlock(&cache->lock); } |