Btrfs: fix memory leak of chunks' extent map
authorLiu Bo <bo.li.liu@oracle.com>
Sun, 29 Sep 2013 02:33:16 +0000 (10:33 +0800)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:54:48 +0000 (21:54 -0500)
commit7d3d1744f8a7d62e4875bd69cc2192a939813880
tree31314caac540d4eaf13a7a4305d6a71f20957114
parentfa7c14947abea7b30f661d902c9a515056be6d90
Btrfs: fix memory leak of chunks' extent map

As we're hold a ref on looking up the extent map, we need to drop the ref
before returning to callers.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c