Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.com>2017-06-07 17:10:18 +0200
committerMichal Marek <mmarek@suse.com>2017-06-07 17:12:06 +0200
commit57b95e7aeaa2e4605be3aae1542c0c6228d84379 (patch)
treec76093fb0655011453513c66233a25740be5a250
parent2ee672b4f3af95b7492d6ac8d071ff7be415c979 (diff)
Btrfs: warn if total_bytes_pinned is non-zero on unmountrpm-4.4.70-2
(bsc#1040182). suse-commit: 4502c760ba4a5a735e348760903459e16e55bca3
-rw-r--r--fs/btrfs/extent-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index cf11d90ceb3c..2a165dcbf5c0 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -9843,6 +9843,7 @@ int btrfs_free_block_groups(struct btrfs_fs_info *info)
space_info->bytes_reserved > 0 ||
space_info->bytes_may_use > 0))
dump_space_info(info, space_info, 0, 0);
+ WARN_ON(percpu_counter_sum(&space_info->total_bytes_pinned) != 0);
list_del(&space_info->list);
for (i = 0; i < BTRFS_NR_RAID_TYPES; i++) {
struct kobject *kobj;