ceph: fix memory leak when destroying osdmap with pg_temp mappings
authorSage Weil <sage@newdream.net>
Tue, 16 Feb 2010 23:53:32 +0000 (15:53 -0800)
committerSage Weil <sage@newdream.net>
Wed, 17 Feb 2010 18:02:48 +0000 (10:02 -0800)
commit9794b146fa7b93f8ab74fb62d67fdefad760769f
tree9478fc2cad415db3baf69e8b975fc33b5917bdf6
parent7c1332b8cb5b27656cf6ab1f5fe808a8eb8bb2c0
ceph: fix memory leak when destroying osdmap with pg_temp mappings

Also move _lookup_pg_mapping into a helper.

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