summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authormajianpeng <majianpeng@gmail.com>2013-06-26 11:15:27 +0800
committerSage Weil <sage@inktank.com>2013-07-03 15:32:54 -0700
commit93faca6ef45822b0825bb181859b1a8911e9c4c1 (patch)
tree094ad6d3b5223b1cadd57c69364edd5cbe2ebaf2 /fs/ceph/super.h
parentfb3101b6f0db9ae3f35dc8e6ec908d0af8cdf12e (diff)
downloadlinux-93faca6ef45822b0825bb181859b1a8911e9c4c1.tar.bz2
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>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 7ccfdb4aea2e..dfbb729b3130 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -534,7 +534,7 @@ extern int __ceph_caps_mds_wanted(struct ceph_inode_info *ci);
extern void ceph_caps_init(struct ceph_mds_client *mdsc);
extern void ceph_caps_finalize(struct ceph_mds_client *mdsc);
extern void ceph_adjust_min_caps(struct ceph_mds_client *mdsc, int delta);
-extern int ceph_reserve_caps(struct ceph_mds_client *mdsc,
+extern void ceph_reserve_caps(struct ceph_mds_client *mdsc,
struct ceph_cap_reservation *ctx, int need);
extern int ceph_unreserve_caps(struct ceph_mds_client *mdsc,
struct ceph_cap_reservation *ctx);