Home
last modified time | relevance | path

Searched refs:sectors_free (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dalloc_foreground.h98 ob_push(c, !ob->sectors_free ? &ptrs : &keep, ob); in bch2_alloc_sectors_done_inlined()
189 BUG_ON(sectors > wp->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined()
190 wp->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
203 BUG_ON(sectors > ob->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined()
204 ob->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
Dalloc_types.h72 u32 sectors_free; member
110 unsigned sectors_free; member
Dalloc_foreground.c262 ob->sectors_free = ca->mi.bucket_size; in __try_alloc_bucket()
1488 wp->sectors_free = UINT_MAX; in bch2_alloc_sectors_start_trans()
1491 wp->sectors_free = min(wp->sectors_free, ob->sectors_free); in bch2_alloc_sectors_start_trans()
1493 BUG_ON(!wp->sectors_free || wp->sectors_free == UINT_MAX); in bch2_alloc_sectors_start_trans()
1530 ob->sectors_free, in bch2_ob_ptr()
1608 ca->mi.bucket_size - ob->sectors_free, ca->mi.bucket_size); in bch2_open_bucket_to_text()
Djournal_io.c28 m->last_journal_bucket_offset = cpu_to_le32(ca->mi.bucket_size - ca->journal.sectors_free); in bch2_journal_pos_from_member_info_set()
43 ca->journal.sectors_free = ca->mi.bucket_size - offset; in bch2_journal_pos_from_member_info_resume()
1075 ja->sectors_free = ca->mi.bucket_size - in journal_read_bucket()
1444 sectors > ja->sectors_free) in __journal_write_alloc()
1454 ja->sectors_free, in __journal_write_alloc()
1458 ja->sectors_free -= sectors; in __journal_write_alloc()
1510 if (sectors > ja->sectors_free && in journal_write_alloc()
1515 ja->sectors_free = ca->mi.bucket_size; in journal_write_alloc()
Djournal_types.h317 unsigned sectors_free; member
Dio_write.c722 min(wp->sectors_free << 9, src->bi_iter.bi_size); in bch2_write_bio_alloc()
833 op->crc.compressed_size <= wp->sectors_free && in bch2_write_prep_encoded_data()
950 dst->bi_iter.bi_size < (wp->sectors_free << 9) && in bch2_write_extent()
967 dst_len = min_t(unsigned, dst_len, wp->sectors_free << 9); in bch2_write_extent()
1058 wp->sectors_free && in bch2_write_extent()
Dec.c1435 unsigned offset = ca->mi.bucket_size - ob->sectors_free; in zero_out_rest_of_ec_bucket()
1438 ob->sectors_free << 9); in zero_out_rest_of_ec_bucket()
1442 ob->sectors_free, in zero_out_rest_of_ec_bucket()
1478 if (ob->sectors_free) in ec_stripe_create()
1641 unsigned offset = ca->mi.bucket_size - ob->sectors_free; in bch2_writepoint_ec_buf()
Dio_misc.c98 sectors = min_t(u64, sectors, wp->sectors_free); in bch2_extent_fallocate()
Djournal_reclaim.c92 sectors = ja->sectors_free; in journal_dev_space_available()
Ddata_update.c496 sectors = min(sectors, wp->sectors_free); in bch2_update_unwritten_extent()
Dbtree_update_interior.c352 if (wp->sectors_free < btree_sectors(c)) { in __bch2_btree_node_alloc()
357 if (ob->sectors_free < btree_sectors(c)) in __bch2_btree_node_alloc()
358 ob->sectors_free = 0; in __bch2_btree_node_alloc()
Djournal.c1514 …\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.12.1/drivers/md/bcache/
Dalloc.c559 unsigned int sectors_free; member
607 if (!ret->sectors_free && KEY_PTRS(alloc)) { in pick_data_bucket()
608 ret->sectors_free = c->cache->sb.bucket_size; in pick_data_bucket()
613 if (!ret->sectors_free) in pick_data_bucket()
679 sectors = min(sectors, b->sectors_free); in bch_alloc_sectors()
693 b->sectors_free -= sectors; in bch_alloc_sectors()
702 if (b->sectors_free < c->cache->sb.block_size) in bch_alloc_sectors()
703 b->sectors_free = 0; in bch_alloc_sectors()
710 if (b->sectors_free) in bch_alloc_sectors()