btrfs: reset max_extent_size on clear in a bitmap
authorJosef Bacik <jbacik@fb.com>
Fri, 28 Sep 2018 11:18:00 +0000 (07:18 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:39 +0000 (17:23 +0200)
commit553cceb49681d60975d00892877d4c871bf220f9
tree766ad50573989393c3dc21c5b32e9387e844e650
parent84de76a2fb217dc1b6bc2965cc397d1648aa1404
btrfs: reset max_extent_size on clear in a bitmap

We need to clear the max_extent_size when we clear bits from a bitmap
since it could have been from the range that contains the
max_extent_size.

CC: stable@vger.kernel.org # 4.4+
Reviewed-by: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c