Lines Matching refs:bucket
501 static void prio_io(struct cache *ca, uint64_t bucket, unsigned long rw) in prio_io() argument
508 bio->bi_iter.bi_sector = bucket * ca->sb.bucket_size; in prio_io()
524 struct bucket *b; in bch_prio_write()
540 long bucket; in bch_prio_write() local
556 bucket = bch_bucket_alloc(ca, RESERVE_PRIO, true); in bch_prio_write()
557 BUG_ON(bucket == -1); in bch_prio_write()
560 prio_io(ca, bucket, REQ_WRITE); in bch_prio_write()
563 ca->prio_buckets[i] = bucket; in bch_prio_write()
564 atomic_dec_bug(&ca->buckets[bucket].pin); in bch_prio_write()
587 static void prio_read(struct cache *ca, uint64_t bucket) in prio_read() argument
591 struct bucket *b; in prio_read()
598 ca->prio_buckets[bucket_nr] = bucket; in prio_read()
599 ca->prio_last_buckets[bucket_nr] = bucket; in prio_read()
602 prio_io(ca, bucket, READ_SYNC); in prio_read()
610 bucket = p->next_bucket; in prio_read()
1809 struct bucket *b; in cache_alloc()
1826 !(ca->buckets = vzalloc(sizeof(struct bucket) * in cache_alloc()