Lines Matching defs:count
144 if (!refcount_dec_and_test(&sl->count))
379 refcount_set(&sl->count, 1);
640 /* Initial active count */
641 atomic_set(&bucket->count, 1);
649 int count;
654 count = atomic_read(&bucket->count);
655 WARN_ON(count < 1);
657 if (count == 1) {
665 * one more count.
667 atomic_inc(&new_bucket->count);
671 * Drop initial active count. At this point if all writes in this and
672 * ancestor buckets complete, the count will go to zero and this task
675 atomic_dec(&bucket->count);
677 wait_event(bucket->waitq, atomic_read(&bucket->count) == 0);
679 /* Drop temp count on descendant bucket */
915 refcount_set(&fc->count, 1);
956 if (refcount_dec_and_test(&fc->count)) {
967 WARN_ON(atomic_read(&bucket->count) != 1);
979 refcount_inc(&fc->count);
1612 refcount_inc(&sl->count);