Lines Matching refs:caps_reserve_count
150 mdsc->caps_reserve_count = 0; in ceph_caps_finalize()
175 BUG_ON(mdsc->caps_reserve_count < nr_caps); in __ceph_unreserve_caps()
176 mdsc->caps_reserve_count -= nr_caps; in __ceph_unreserve_caps()
178 mdsc->caps_reserve_count + mdsc->caps_min_count) { in __ceph_unreserve_caps()
193 mdsc->caps_reserve_count, mdsc->caps_avail_count); in __ceph_unreserve_caps()
195 mdsc->caps_reserve_count + in __ceph_unreserve_caps()
226 mdsc->caps_reserve_count += have; in ceph_reserve_caps()
228 mdsc->caps_reserve_count + in ceph_reserve_caps()
269 mdsc->caps_reserve_count += more_have; in ceph_reserve_caps()
291 mdsc->caps_reserve_count += alloc; in ceph_reserve_caps()
295 mdsc->caps_reserve_count + in ceph_reserve_caps()
305 mdsc->caps_reserve_count, mdsc->caps_avail_count); in ceph_reserve_caps()
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()
370 BUG_ON(ctx->count > mdsc->caps_reserve_count); in ceph_get_cap()
375 mdsc->caps_reserve_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()
410 mdsc->caps_reserve_count + mdsc->caps_avail_count); in ceph_put_cap()
429 *reserved = mdsc->caps_reserve_count; in ceph_reservation_status()