Re: [PATCH] Btrfs: free bitmaps properly when evicting the cache

2011-04-20 Thread Li Zefan
Josef Bacik wrote: > If our space cache is wrong, we do the right thing and free up everything that > we loaded, however we don't reset the total_bitmaps counter or the thresholds > or > anything. So in btrfs_remove_free_space_cache make sure to call free_bitmap() > if it's a bitmap, this will ke

[PATCH] Btrfs: free bitmaps properly when evicting the cache

2011-04-18 Thread Josef Bacik
If our space cache is wrong, we do the right thing and free up everything that we loaded, however we don't reset the total_bitmaps counter or the thresholds or anything. So in btrfs_remove_free_space_cache make sure to call free_bitmap() if it's a bitmap, this will keep us from panicing when we ch