diff options
author | 2020-01-02 16:26:45 -0500 | |
---|---|---|
committer | 2020-01-20 16:41:01 +0100 | |
commit | 27f0afc7376bf6e1405ee3a0ef0ab85171059ae8 (patch) | |
tree | ba463d971d6924219069694774648100583fe3f6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: make smaller extents more likely to go into bitmaps (diff) | |
download | wireguard-linux-27f0afc7376bf6e1405ee3a0ef0ab85171059ae8.tar.xz wireguard-linux-27f0afc7376bf6e1405ee3a0ef0ab85171059ae8.zip |
btrfs: ensure removal of discardable_* in free_bitmap()
Most callers of free_bitmap() only call it if bitmap_info->bytes is 0.
However, there are certain cases where we may free the free space cache
via __btrfs_remove_free_space_cache(). This exposes a path where
free_bitmap() is called regardless. This may result in a bad accounting
situation for discardable_bytes and discardable_extents. So, remove the
stats and call btrfs_discard_update_discardable().
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions