Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/md/
Ddm-snap-transient.c23 sector_t next_free; member
45 if (size < (tc->next_free + store->chunk_size)) in transient_prepare_exception()
48 e->new_chunk = sector_to_chunk(store, tc->next_free); in transient_prepare_exception()
49 tc->next_free += store->chunk_size; in transient_prepare_exception()
68 *sectors_allocated = ((struct transient_c *) store->context)->next_free; in transient_usage()
81 tc->next_free = 0; in transient_ctr()
Ddm-snap-persistent.c151 chunk_t next_free; member
276 chunk_t next_free = ps->next_free; in skip_metadata() local
277 if (sector_div(next_free, stride) == NUM_SNAPSHOT_HDR_CHUNKS) in skip_metadata()
278 ps->next_free++; in skip_metadata()
479 if (ps->next_free <= e.new_chunk) in insert_exceptions()
480 ps->next_free = e.new_chunk + 1; in insert_exceptions()
582 *sectors_allocated = ps->next_free * store->chunk_size; in persistent_usage()
683 if (size < ((ps->next_free + 1) * store->chunk_size)) in persistent_prepare_exception()
686 e->new_chunk = ps->next_free; in persistent_prepare_exception()
692 ps->next_free++; in persistent_prepare_exception()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Drtas_flash.c319 int next_free, rc; in rtas_flash_write() local
340 next_free = fl->num_blocks; in rtas_flash_write()
341 if (next_free == FLASH_BLOCKS_PER_NODE) { in rtas_flash_write()
347 next_free = 0; in rtas_flash_write()
361 fl->blocks[next_free].data = p; in rtas_flash_write()
362 fl->blocks[next_free].length = count; in rtas_flash_write()
/Linux-v4.19/fs/ocfs2/
Dalloc.c1612 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right() local
1616 BUG_ON(!next_free); in ocfs2_shift_records_right()
1618 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1620 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1628 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1632 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1635 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1650 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1653 next_free--; in ocfs2_rotate_leaf()
1659 for(i = 0; i < next_free; i++) { in ocfs2_rotate_leaf()
[all …]
Djournal.h598 u16 next_free = le16_to_cpu(last_el->l_next_free_rec); in ocfs2_calc_tree_trunc_credits() local
603 i = next_free - 1; in ocfs2_calc_tree_trunc_credits()
608 if (tree_depth && next_free == 1 && in ocfs2_calc_tree_trunc_credits()
Dresize.c430 u16 next_free = le16_to_cpu(di->id2.i_chain.cl_next_free_rec); in ocfs2_verify_group_and_input() local
439 else if (next_free != cl_count && next_free != input->chain) in ocfs2_verify_group_and_input()
441 "the add group should be in chain %u\n", next_free); in ocfs2_verify_group_and_input()
Dextent_map.c292 int ret, next_free; in ocfs2_last_eb_is_empty() local
316 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_last_eb_is_empty()
318 if (next_free == 0 || in ocfs2_last_eb_is_empty()
319 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) in ocfs2_last_eb_is_empty()
Docfs2_trace.h563 int has_empty, int next_free,
566 next_free, l_count),
571 __field(int, next_free)
578 __entry->next_free = next_free;
583 __entry->next_free, __entry->l_count)
/Linux-v4.19/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.h527 struct mtk_tx_dma *next_free; member
Dmtk_eth_soc.c693 itxd = ring->next_free; in mtk_tx_map()
785 ring->next_free = mtk_qdma_phys_to_virt(ring, txd->txd2); in mtk_tx_map()
1237 ring->next_free = &ring->dma[0]; in mtk_tx_alloc()
/Linux-v4.19/fs/btrfs/
Dscrub.c95 int next_free; member
601 sctx->bios[i]->next_free = i + 1; in scrub_setup_ctx()
603 sctx->bios[i]->next_free = -1; in scrub_setup_ctx()
2025 sctx->first_free = sctx->bios[sctx->curr]->next_free; in scrub_add_page_to_rd_bio()
2026 sctx->bios[sctx->curr]->next_free = -1; in scrub_add_page_to_rd_bio()
2330 sbio->next_free = sctx->first_free; in scrub_bio_end_io_worker()
/Linux-v4.19/drivers/net/ethernet/ibm/
Dibmvnic.c284 index = pool->free_map[pool->next_free]; in replenish_rx_pool()
296 pool->free_map[pool->next_free] = IBMVNIC_INVALID_MAP; in replenish_rx_pool()
326 pool->next_free = (pool->next_free + 1) % pool->size; in replenish_rx_pool()
334 pool->free_map[pool->next_free] = index; in replenish_rx_pool()
460 rx_pool->next_free = 0; in reset_rx_pools()
565 rx_pool->next_free = 0; in init_rx_pools()
Dibmvnic.h920 int next_free; member