Btrfs-progs: Don't free the devices when close the ctree
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Jul 2013 13:25:11 +0000 (21:25 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 3 Jul 2013 18:06:54 +0000 (14:06 -0400)
commitd25aa23b0236418e891e1db66562035891a8faa8
tree74db86927c6cd437babc868c0c687052b8831916
parent0daa219ee1119e30059077da5be03c4506963fe2
Btrfs-progs: Don't free the devices when close the ctree

Some commands(such as btrfs-convert) access the devices again after we close
the ctree, so it is better that we don't free the devices objects when the ctree
is closed, or we need re-allocate the memory for the devices. We needn't worry
the memory leak problem, because all the memory will be freed after the taskes
die.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfs-find-root.c
disk-io.c
volumes.c