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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:57 +0000 (11:08 -0800)
commit9aabbb2ecd0511872af94533c609f83c6104b0a6
treee3069a8759a3ab4df61e9272e643031dc18e5b6a
parent9006ad16effe24fa74c7dd1dc5b16197e1b2ece2
btrfs: reset max_extent_size on clear in a bitmap

commit 553cceb49681d60975d00892877d4c871bf220f9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/free-space-cache.c