Lines Matching defs:bucket
124 err = "Bad bucket size (not power of 2)";
128 err = "Bad bucket size (smaller than page size)";
156 err = "Invalid superblock: first bucket comes before end of super";
517 /* Only one bucket used for uuid write */
557 * For each bucket, we store on disk its
572 * header points to the first bucket, the first bucket points to the second
573 * bucket, et cetera.
590 static void prio_io(struct cache *ca, uint64_t bucket, blk_opf_t opf)
597 bio->bi_iter.bi_sector = bucket * ca->sb.bucket_size;
613 struct bucket *b;
643 long bucket;
659 bucket = bch_bucket_alloc(ca, RESERVE_PRIO, wait);
660 BUG_ON(bucket == -1);
663 prio_io(ca, bucket, REQ_OP_WRITE);
666 ca->prio_buckets[i] = bucket;
667 atomic_dec_bug(&ca->buckets[bucket].pin);
691 static int prio_read(struct cache *ca, uint64_t bucket)
695 struct bucket *b;
703 ca->prio_buckets[bucket_nr] = bucket;
704 ca->prio_last_buckets[bucket_nr] = bucket;
707 prio_io(ca, bucket, REQ_OP_READ);
720 bucket = p->next_bucket;
1323 pr_err("The obsoleted large bucket layout is unsupported, set the bcache device into read-only\n");
1556 pr_err("The obsoleted large bucket layout is unsupported, set the bcache device into read-only\n");
2085 err = "cannot allocate new UUID bucket";
2122 pr_err("Detect obsoleted large bucket layout, all attached bcache device will be read-only\n");
2232 struct bucket *b;
2244 * so bucket of RESERVE_BTREE type is needed,
2290 ca->buckets = vzalloc(array_size(sizeof(struct bucket),