diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index ff179b1e7423dab78113066d375b5b03bc2f50c0..ec23d43d0c357870a14bf6e79a0ce5baeb93a43d 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -2320,6 +2320,7 @@ static int btrfs_bitmap_cluster(struct btrfs_block_group_cache *block_group, if (!found) { start = i; + cluster->max_size = 0; found = true; }