btrfs-progs: free-space-cache: Don't panic when free space cache is corrupted
commit581e2c16a3b1239bd6170fbca1c15c733d6bd634
authorQu Wenruo <wqu@suse.com>
Sun, 1 Jul 2018 02:45:26 +0000 (1 10:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 13:00:24 +0000 (6 15:00 +0200)
tree500baadc2e32b4e3856e7bfb7074ffda8ed51254
parentd4f19ad08475204baf3fd15b91bca25da7bef388
btrfs-progs: free-space-cache: Don't panic when free space cache is corrupted

In btrfs_add_free_space(), if the free space to be added is already
here, we trigger ASSERT() which is just another BUG_ON().

Let's remove such BUG_ON() at all.

Reported-by: Lewis Diamond <me@lewisdiamond.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
free-space-cache.c