aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/discard.c
diff options
context:
space:
mode:
authorDennis Zhou <dennis@kernel.org>2020-01-02 16:26:45 -0500
committerDavid Sterba <dsterba@suse.com>2020-01-20 16:41:01 +0100
commit27f0afc7376bf6e1405ee3a0ef0ab85171059ae8 (patch)
treeba463d971d6924219069694774648100583fe3f6 /fs/btrfs/discard.c
parentf9bb615af2ba8724bff82376275a14b02eef5eb2 (diff)
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 'fs/btrfs/discard.c')
0 files changed, 0 insertions, 0 deletions