ceph: fix pg_mapping leak on pg_temp updates
authorSage Weil <sage@newdream.net>
Tue, 20 Jul 2010 23:19:56 +0000 (16:19 -0700)
committerSage Weil <sage@newdream.net>
Fri, 23 Jul 2010 17:02:06 +0000 (10:02 -0700)
commitbc4fdca85734d12cd2c7a25c52323ef6e6e5adef
tree64063d3fc8e39dd22d1621c7e30b184585bfdaf2
parent252af5214682191e34e57204e1a31924fb82c207
ceph: fix pg_mapping leak on pg_temp updates

Free the ceph_pg_mapping structs when they are removed from the pg_temp
rbtree.  Also fix a leak in the __insert_pg_mapping() error path.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/osdmap.c