Searched refs:sectors_free (Results 1 – 13 of 13) sorted by relevance
| /linux-6.15/fs/bcachefs/ |
| H A D | alloc_foreground.h | 113 ob_push(c, ob->sectors_free < block_sectors(c) in bch2_alloc_sectors_done_inlined() 206 BUG_ON(sectors > wp->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined() 207 wp->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined() 220 BUG_ON(sectors > ob->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined() 221 ob->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
|
| H A D | alloc_types.h | 73 u32 sectors_free; member 112 unsigned sectors_free; member
|
| H A D | alloc_foreground.c | 245 ob->sectors_free = ca->mi.bucket_size; in __try_alloc_bucket() 1423 wp->sectors_free = UINT_MAX; in bch2_alloc_sectors_start_trans() 1434 ob->sectors_free; in bch2_alloc_sectors_start_trans() 1437 ob->sectors_free = max_t(int, 0, ob->sectors_free - align); in bch2_alloc_sectors_start_trans() 1439 wp->sectors_free = min(wp->sectors_free, ob->sectors_free); in bch2_alloc_sectors_start_trans() 1442 wp->sectors_free = rounddown(wp->sectors_free, block_sectors(c)); in bch2_alloc_sectors_start_trans() 1445 if (unlikely(!wp->sectors_free)) { in bch2_alloc_sectors_start_trans() 1450 BUG_ON(!wp->sectors_free || wp->sectors_free == UINT_MAX); in bch2_alloc_sectors_start_trans() 1487 ob->sectors_free, in bch2_ob_ptr() 1565 ca->mi.bucket_size - ob->sectors_free, ca->mi.bucket_size); in bch2_open_bucket_to_text()
|
| H A D | journal_types.h | 316 unsigned sectors_free; member
|
| H A D | journal_io.c | 32 m->last_journal_bucket_offset = cpu_to_le32(ca->mi.bucket_size - ca->journal.sectors_free); in bch2_journal_pos_from_member_info_set() 47 ca->journal.sectors_free = ca->mi.bucket_size - offset; in bch2_journal_pos_from_member_info_resume() 1118 ja->sectors_free = ca->mi.bucket_size - in journal_read_bucket() 1476 if (sectors > ja->sectors_free && in journal_advance_devs_to_next_bucket() 1481 ja->sectors_free = ca->mi.bucket_size; in journal_advance_devs_to_next_bucket() 1516 sectors > ja->sectors_free) in __journal_write_alloc() 1526 ja->sectors_free, in __journal_write_alloc() 1530 ja->sectors_free -= sectors; in __journal_write_alloc()
|
| H A D | io_write.c | 799 min(wp->sectors_free << 9, src->bi_iter.bi_size); in bch2_write_bio_alloc() 877 op->crc.compressed_size <= wp->sectors_free && in bch2_write_prep_encoded_data() 1029 dst->bi_iter.bi_size < (wp->sectors_free << 9) && in bch2_write_extent() 1046 dst_len = min_t(unsigned, dst_len, wp->sectors_free << 9); in bch2_write_extent() 1146 wp->sectors_free && in bch2_write_extent()
|
| H A D | ec.c | 1255 unsigned offset = ca->mi.bucket_size - ob->sectors_free; in zero_out_rest_of_ec_bucket() 1258 ob->sectors_free << 9); in zero_out_rest_of_ec_bucket() 1262 ob->sectors_free, in zero_out_rest_of_ec_bucket() 1298 if (ob->sectors_free) in ec_stripe_create() 1466 unsigned offset = ca->mi.bucket_size - ob->sectors_free; in bch2_writepoint_ec_buf()
|
| H A D | io_misc.c | 98 sectors = min_t(u64, sectors, wp->sectors_free); in bch2_extent_fallocate()
|
| H A D | journal_reclaim.c | 97 sectors = ja->sectors_free; in journal_dev_space_available()
|
| H A D | btree_update_interior.c | 332 if (wp->sectors_free < btree_sectors(c)) { in __bch2_btree_node_alloc() 337 if (ob->sectors_free < btree_sectors(c)) in __bch2_btree_node_alloc() 338 ob->sectors_free = 0; in __bch2_btree_node_alloc()
|
| H A D | data_update.c | 531 sectors = min(sectors, wp->sectors_free); in bch2_update_unwritten_extent()
|
| H A D | journal.c | 1734 …\t%u:%u\n", bch2_journal_dev_buckets_available(j, ja, journal_space_discarded), ja->sectors_free); in __bch2_journal_debug_to_text()
|
| /linux-6.15/drivers/md/bcache/ |
| H A D | alloc.c | 552 unsigned int sectors_free; member 600 if (!ret->sectors_free && KEY_PTRS(alloc)) { in pick_data_bucket() 601 ret->sectors_free = c->cache->sb.bucket_size; in pick_data_bucket() 606 if (!ret->sectors_free) in pick_data_bucket() 672 sectors = min(sectors, b->sectors_free); in bch_alloc_sectors() 686 b->sectors_free -= sectors; in bch_alloc_sectors() 695 if (b->sectors_free < c->cache->sb.block_size) in bch_alloc_sectors() 696 b->sectors_free = 0; in bch_alloc_sectors() 703 if (b->sectors_free) in bch_alloc_sectors()
|