Home
last modified time | relevance | path

Searched refs:bucket_to_sector (Results 1 – 11 of 11) sorted by relevance

/linux/fs/bcachefs/
H A Dalloc_foreground.c339 bucket_to_sector(ca, bucket), ca->mi.bucket_size)) { in bch2_bucket_alloc_early()
341 bucket_to_sector(ca, bucket) > 64ULL << ca->mi.btree_bitmap_shift) in bch2_bucket_alloc_early()
345 round_up(bucket_to_sector(ca, bucket) + 1, in bch2_bucket_alloc_early()
427 bucket_to_sector(ca, bucket), ca->mi.bucket_size)) { in bch2_bucket_alloc_freelist()
429 bucket_to_sector(ca, bucket) > 64ULL << ca->mi.btree_bitmap_shift) in bch2_bucket_alloc_freelist()
433 round_up(bucket_to_sector(ca, bucket + 1), in bch2_bucket_alloc_freelist()
1444 .offset = bucket_to_sector(ca, ob->bucket) + in bch2_ob_ptr()
H A Dbackpointers.h69 (bucket_to_sector(ca, bucket.offset) << in bucket_pos_to_bp_noerror()
H A Dbuckets.h20 static inline sector_t bucket_to_sector(const struct bch_dev *ca, size_t b) in bucket_to_sector() function
H A Dbuckets.c1057 min_t(u64, bucket_to_sector(ca, b + 1), end) - start; in bch2_trans_mark_metadata_sectors()
1156 u64 b_offset = bucket_to_sector(ca, b); in bch2_is_superblock_bucket()
1157 u64 b_end = bucket_to_sector(ca, b + 1); in bch2_is_superblock_bucket()
H A Djournal_io.c1019 u64 offset = bucket_to_sector(ca, ja->buckets[bucket]), in journal_read_bucket()
1132 bucket_to_sector(ca, ja->buckets[bucket]), in journal_read_bucket()
1495 .offset = bucket_to_sector(ca, in __journal_write_alloc()
H A Djournal_reclaim.c293 bucket_to_sector(ca, in bch2_journal_do_discards()
H A Djournal.c1181 bucket_to_sector(ca, nr - ja->nr), 1, 0); in bch2_set_nr_journal_buckets_loop()
H A Dalloc_background.c2460 capacity += bucket_to_sector(ca, ca->mi.nbuckets - in bch2_recalc_capacity()
/linux/drivers/md/bcache/
H A Djournal.c46 sector_t bucket = bucket_to_sector(ca->set, ca->sb.d[bucket_index]); in journal_read_bucket()
619 bio->bi_iter.bi_sector = bucket_to_sector(ca->set, in do_journal_discard()
681 bucket_to_sector(c, ca->sb.d[ja->cur_idx]), in journal_reclaim()
H A Dalloc.c359 bucket_to_sector(ca->set, bucket), in bch_allocator_thread()
528 bucket_to_sector(c, b), in __bch_bucket_alloc_set()
H A Dbcache.h803 static inline sector_t bucket_to_sector(struct cache_set *c, size_t b) in bucket_to_sector() function