Lines Matching refs:bucket
524 static void prio_io(struct cache *ca, uint64_t bucket, unsigned long rw) in prio_io() argument
531 bio->bi_iter.bi_sector = bucket * ca->sb.bucket_size; in prio_io()
547 struct bucket *b; in bch_prio_write()
563 long bucket; in bch_prio_write() local
579 bucket = bch_bucket_alloc(ca, RESERVE_PRIO, true); in bch_prio_write()
580 BUG_ON(bucket == -1); in bch_prio_write()
583 prio_io(ca, bucket, REQ_WRITE); in bch_prio_write()
586 ca->prio_buckets[i] = bucket; in bch_prio_write()
587 atomic_dec_bug(&ca->buckets[bucket].pin); in bch_prio_write()
610 static void prio_read(struct cache *ca, uint64_t bucket) in prio_read() argument
614 struct bucket *b; in prio_read()
621 ca->prio_buckets[bucket_nr] = bucket; in prio_read()
622 ca->prio_last_buckets[bucket_nr] = bucket; in prio_read()
625 prio_io(ca, bucket, READ_SYNC); in prio_read()
633 bucket = p->next_bucket; in prio_read()
1842 struct bucket *b; in cache_alloc()
1859 !(ca->buckets = vzalloc(sizeof(struct bucket) * in cache_alloc()