Home
last modified time | relevance | path

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

/linux-4.1.27/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()
82 tc->next_free = 0; in transient_ctr()
Ddm-snap-persistent.c150 chunk_t next_free; member
274 chunk_t next_free = ps->next_free; in skip_metadata() local
275 if (sector_div(next_free, stride) == NUM_SNAPSHOT_HDR_CHUNKS) in skip_metadata()
276 ps->next_free++; in skip_metadata()
476 if (ps->next_free <= e.new_chunk) in insert_exceptions()
477 ps->next_free = e.new_chunk + 1; in insert_exceptions()
579 *sectors_allocated = ps->next_free * store->chunk_size; in persistent_usage()
680 if (size < ((ps->next_free + 1) * store->chunk_size)) in persistent_prepare_exception()
683 e->new_chunk = ps->next_free; in persistent_prepare_exception()
689 ps->next_free++; in persistent_prepare_exception()
[all …]
/linux-4.1.27/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-4.1.27/fs/ocfs2/
Dalloc.c1585 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right() local
1589 BUG_ON(!next_free); in ocfs2_shift_records_right()
1591 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1593 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1601 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1605 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1608 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1623 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1626 next_free--; in ocfs2_rotate_leaf()
1632 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.c421 u16 next_free = le16_to_cpu(di->id2.i_chain.cl_next_free_rec); in ocfs2_verify_group_and_input() local
430 else if (next_free != cl_count && next_free != input->chain) in ocfs2_verify_group_and_input()
432 "the add group should be in chain %u\n", next_free); in ocfs2_verify_group_and_input()
Dextent_map.c291 int ret, next_free; in ocfs2_last_eb_is_empty() local
315 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_last_eb_is_empty()
317 if (next_free == 0 || in ocfs2_last_eb_is_empty()
318 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) in ocfs2_last_eb_is_empty()
Docfs2_trace.h562 int has_empty, int next_free,
565 next_free, l_count),
570 __field(int, next_free)
577 __entry->next_free = next_free;
582 __entry->next_free, __entry->l_count)
/linux-4.1.27/fs/btrfs/
Dscrub.c107 int next_free; member
495 sctx->bios[i]->next_free = i + 1; in scrub_setup_ctx()
497 sctx->bios[i]->next_free = -1; in scrub_setup_ctx()
2122 sctx->first_free = sctx->bios[sctx->curr]->next_free; in scrub_add_page_to_rd_bio()
2123 sctx->bios[sctx->curr]->next_free = -1; in scrub_add_page_to_rd_bio()
2303 sbio->next_free = sctx->first_free; in scrub_bio_end_io_worker()