diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index ac80fcce25f7..a1355a33e7e9 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -9778,13 +9778,15 @@ int btrfs_free_block_groups(struct btrfs_fs_info *info) | |||
9778 | space_info = list_entry(info->space_info.next, | 9778 | space_info = list_entry(info->space_info.next, |
9779 | struct btrfs_space_info, | 9779 | struct btrfs_space_info, |
9780 | list); | 9780 | list); |
9781 | if (btrfs_test_opt(info->tree_root, ENOSPC_DEBUG)) { | 9781 | |
9782 | if (WARN_ON(space_info->bytes_pinned > 0 || | 9782 | /* |
9783 | * Do not hide this behind enospc_debug, this is actually | ||
9784 | * important and indicates a real bug if this happens. | ||
9785 | */ | ||
9786 | if (WARN_ON(space_info->bytes_pinned > 0 || | ||
9783 | space_info->bytes_reserved > 0 || | 9787 | space_info->bytes_reserved > 0 || |
9784 | space_info->bytes_may_use > 0)) { | 9788 | space_info->bytes_may_use > 0)) |
9785 | dump_space_info(space_info, 0, 0); | 9789 | dump_space_info(space_info, 0, 0); |
9786 | } | ||
9787 | } | ||
9788 | list_del(&space_info->list); | 9790 | list_del(&space_info->list); |
9789 | for (i = 0; i < BTRFS_NR_RAID_TYPES; i++) { | 9791 | for (i = 0; i < BTRFS_NR_RAID_TYPES; i++) { |
9790 | struct kobject *kobj; | 9792 | struct kobject *kobj; |