Lines Matching refs:caps_avail_count

148 	mdsc->caps_avail_count = 0;  in ceph_caps_finalize()
177 if (mdsc->caps_avail_count >= in __ceph_unreserve_caps()
187 mdsc->caps_avail_count += nr_caps; in __ceph_unreserve_caps()
193 mdsc->caps_reserve_count, mdsc->caps_avail_count); in __ceph_unreserve_caps()
196 mdsc->caps_avail_count); in __ceph_unreserve_caps()
221 if (mdsc->caps_avail_count >= need) in ceph_reserve_caps()
224 have = mdsc->caps_avail_count; in ceph_reserve_caps()
225 mdsc->caps_avail_count -= have; in ceph_reserve_caps()
229 mdsc->caps_avail_count); in ceph_reserve_caps()
259 if (mdsc->caps_avail_count) { in ceph_reserve_caps()
261 if (mdsc->caps_avail_count >= need - i) in ceph_reserve_caps()
264 more_have = mdsc->caps_avail_count; in ceph_reserve_caps()
268 mdsc->caps_avail_count -= more_have; in ceph_reserve_caps()
296 mdsc->caps_avail_count); in ceph_reserve_caps()
305 mdsc->caps_reserve_count, mdsc->caps_avail_count); in ceph_reserve_caps()
347 if (mdsc->caps_avail_count) { in ceph_get_cap()
350 mdsc->caps_avail_count--; in ceph_get_cap()
357 mdsc->caps_reserve_count + mdsc->caps_avail_count); in ceph_get_cap()
368 mdsc->caps_reserve_count, mdsc->caps_avail_count); in ceph_get_cap()
382 mdsc->caps_reserve_count + mdsc->caps_avail_count); in ceph_get_cap()
394 mdsc->caps_reserve_count, mdsc->caps_avail_count); in ceph_put_cap()
400 if (mdsc->caps_avail_count >= mdsc->caps_reserve_count + in ceph_put_cap()
405 mdsc->caps_avail_count++; in ceph_put_cap()
410 mdsc->caps_reserve_count + mdsc->caps_avail_count); in ceph_put_cap()
425 *avail = mdsc->caps_avail_count; in ceph_reservation_status()