Lines Matching refs:caps_reserve_count
146 mdsc->caps_reserve_count = 0; in ceph_caps_finalize()
165 BUG_ON(mdsc->caps_reserve_count < nr_caps); in __ceph_unreserve_caps()
166 mdsc->caps_reserve_count -= nr_caps; in __ceph_unreserve_caps()
168 mdsc->caps_reserve_count + mdsc->caps_min_count) { in __ceph_unreserve_caps()
183 mdsc->caps_reserve_count, mdsc->caps_avail_count); in __ceph_unreserve_caps()
185 mdsc->caps_reserve_count + in __ceph_unreserve_caps()
215 mdsc->caps_reserve_count += have; in ceph_reserve_caps()
217 mdsc->caps_reserve_count + in ceph_reserve_caps()
258 mdsc->caps_reserve_count += more_have; in ceph_reserve_caps()
279 mdsc->caps_reserve_count += alloc; in ceph_reserve_caps()
283 mdsc->caps_reserve_count + in ceph_reserve_caps()
293 mdsc->caps_reserve_count, mdsc->caps_avail_count); in ceph_reserve_caps()
332 mdsc->caps_reserve_count + mdsc->caps_avail_count); in ceph_get_cap()
343 mdsc->caps_reserve_count, mdsc->caps_avail_count); in ceph_get_cap()
345 BUG_ON(ctx->count > mdsc->caps_reserve_count); in ceph_get_cap()
349 mdsc->caps_reserve_count--; in ceph_get_cap()
356 mdsc->caps_reserve_count + mdsc->caps_avail_count); in ceph_get_cap()
366 mdsc->caps_reserve_count, mdsc->caps_avail_count); in ceph_put_cap()
372 if (mdsc->caps_avail_count >= mdsc->caps_reserve_count + in ceph_put_cap()
382 mdsc->caps_reserve_count + mdsc->caps_avail_count); in ceph_put_cap()
401 *reserved = mdsc->caps_reserve_count; in ceph_reservation_status()