Home
last modified time | relevance | path

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

/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
275 chunk_t next_free = ps->next_free; in skip_metadata() local
276 if (sector_div(next_free, stride) == NUM_SNAPSHOT_HDR_CHUNKS) in skip_metadata()
277 ps->next_free++; in skip_metadata()
477 if (ps->next_free <= e.new_chunk) in insert_exceptions()
478 ps->next_free = e.new_chunk + 1; in insert_exceptions()
580 *sectors_allocated = ps->next_free * store->chunk_size; in persistent_usage()
681 if (size < ((ps->next_free + 1) * store->chunk_size)) in persistent_prepare_exception()
684 e->new_chunk = ps->next_free; in persistent_prepare_exception()
690 ps->next_free++; in persistent_prepare_exception()
[all …]