4.4-stable review patch. If anyone has any objections, please let me know.
------------------ From: Josef Bacik <jba...@fb.com> commit 187ee58c62c1d0d238d3dc4835869d33e1869906 upstream. We need to call free_extent_map() on the em we look up. Signed-off-by: Josef Bacik <jba...@fb.com> Reviewed-by: Omar Sandoval <osan...@fb.com> Signed-off-by: David Sterba <dste...@suse.com> Signed-off-by: Chris Mason <c...@fb.com> Signed-off-by: Ben Hutchings <ben.hutchi...@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- fs/btrfs/extent-tree.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -9518,6 +9518,7 @@ static int find_first_block_group(struct } else { ret = 0; } + free_extent_map(em); goto out; } path->slots[0]++;