Lines Matching defs:hold_count
339 atomic_t hold_count;
611 atomic_inc(&b->hold_count);
641 BUG_ON(!atomic_read(&b->hold_count));
642 r = atomic_dec_and_test(&b->hold_count);
655 * predicate the hold_count of the selected buffer will be zero.
665 * extra test for hold_count.
674 if (atomic_read(&b->hold_count))
859 BUG_ON(atomic_read(&b->hold_count) != 1);
872 * Fails if the hold_count is not one (ie. the caller holds the only reference).
882 if (atomic_read(&b->hold_count) != 1) {
938 if (atomic_read(&b->hold_count))
1489 BUG_ON(atomic_read(&b->hold_count));
1790 atomic_set(&b->hold_count, 1);
1902 if (b && (atomic_read(&b->hold_count) == 1))
2339 (unsigned long long)b->block, atomic_read(&b->hold_count), b->list_mode);
2343 atomic_set(&b->hold_count, 0);