ceph: fix snap context reference leaks
authorSage Weil <sage@newdream.net>
Thu, 1 Apr 2010 05:01:38 +0000 (22:01 -0700)
committerSage Weil <sage@newdream.net>
Thu, 1 Apr 2010 16:34:37 +0000 (09:34 -0700)
commit6298a33757ba7361bb8f506c106daad77e5ac8cf
treeebd8e7cab86a66c00c0bd4f411c335ed4d0fda9f
parent80e755fedebc8de0599a79efad2c656503df2e62
ceph: fix snap context reference leaks

The get_oldest_context() helper takes a reference to the returned snap
context, but most callers weren't dropping that reference.  Fix them.

Also drop the unused locked __get_oldest_context() variant.

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