Commit b92e8f54 authored by Filipe Manana's avatar Filipe Manana Committed by David Sterba
Browse files

btrfs: print block group super and delalloc bytes when dumping space info



When dumping a space info's block groups, also print the number of bytes
used for super blocks and delalloc. This is often useful for debugging
-ENOSPC problems.

Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 4d2024e9
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -525,9 +525,10 @@ void btrfs_dump_space_info(struct btrfs_fs_info *fs_info,
	list_for_each_entry(cache, &info->block_groups[index], list) {
		spin_lock(&cache->lock);
		btrfs_info(fs_info,
			"block group %llu has %llu bytes, %llu used %llu pinned %llu reserved %llu zone_unusable %s",
"block group %llu has %llu bytes, %llu used %llu pinned %llu reserved %llu delalloc %llu super %llu zone_unusable %s",
			   cache->start, cache->length, cache->used, cache->pinned,
			cache->reserved, cache->zone_unusable,
			   cache->reserved, cache->delalloc_bytes,
			   cache->bytes_super, cache->zone_unusable,
			   cache->ro ? "[readonly]" : "");
		spin_unlock(&cache->lock);
		btrfs_dump_free_space(cache, bytes);