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";
519 /* Only one bucket used for uuid write */
559 * For each bucket, we store on disk its
574 * header points to the first bucket, the first bucket points to the second
575 * bucket, et cetera.
592 static void prio_io(struct cache *ca, uint64_t bucket, int op,
600 bio->bi_iter.bi_sector = bucket * ca->sb.bucket_size;
616 struct bucket *b;
646 long bucket;
662 bucket = bch_bucket_alloc(ca, RESERVE_PRIO, wait);
663 BUG_ON(bucket == -1);
666 prio_io(ca, bucket, REQ_OP_WRITE, 0);
669 ca->prio_buckets[i] = bucket;
670 atomic_dec_bug(&ca->buckets[bucket].pin);
694 static int prio_read(struct cache *ca, uint64_t bucket)
698 struct bucket *b;
706 ca->prio_buckets[bucket_nr] = bucket;
707 ca->prio_last_buckets[bucket_nr] = bucket;
710 prio_io(ca, bucket, REQ_OP_READ, 0);
723 bucket = p->next_bucket;
1354 pr_err("The obsoleted large bucket layout is unsupported, set the bcache device into read-only\n");
1583 pr_err("The obsoleted large bucket layout is unsupported, set the bcache device into read-only\n");
2111 err = "cannot allocate new UUID bucket";
2148 pr_err("Detect obsoleted large bucket layout, all attached bcache device will be read-only\n");
2258 struct bucket *b;
2270 * so bucket of RESERVE_BTREE type is needed,
2316 ca->buckets = vzalloc(array_size(sizeof(struct bucket),