ceph: Reconstruct the func ceph_reserve_caps.
authormajianpeng <majianpeng@gmail.com>
Wed, 26 Jun 2013 03:15:27 +0000 (11:15 +0800)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 22:32:54 +0000 (15:32 -0700)
commit93faca6ef45822b0825bb181859b1a8911e9c4c1
tree094ad6d3b5223b1cadd57c69364edd5cbe2ebaf2
parentfb3101b6f0db9ae3f35dc8e6ec908d0af8cdf12e
ceph: Reconstruct the func ceph_reserve_caps.

Drop ignored return value.  Fix allocation failure case to not leak.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/caps.c
fs/ceph/super.h