Home
last modified time | relevance | path

Searched refs:free_sectors (Results 1 – 4 of 4) sorted by relevance

/drivers/mtd/
Drfd_ftl.c65 int free_sectors; member
116 block->free_sectors++; in build_block_map()
145 if (block->free_sectors == part->data_sectors_per_block) in build_block_map()
284 part->blocks[block].free_sectors = 0; in erase_block()
292 part->blocks[block].free_sectors = 0; in erase_block()
299 part->blocks[block].free_sectors = part->data_sectors_per_block; in erase_block()
436 if (part->blocks[block].free_sectors) in reclaim_block()
467 part->blocks[best_block].free_sectors); in reclaim_block()
491 if (part->blocks[block].free_sectors && in find_free_block()
578 !part->blocks[block].free_sectors) in mark_sector_deleted()
[all …]
Dsm_ftl.c486 kfifo_in(&zone->free_sectors, in sm_erase_block()
764 if (kfifo_alloc(&zone->free_sectors, ftl->zone_size * 2, GFP_KERNEL)) { in sm_init_zone()
778 kfifo_free(&zone->free_sectors); in sm_init_zone()
786 kfifo_in(&zone->free_sectors, in sm_init_zone()
848 if (!kfifo_len(&zone->free_sectors)) { in sm_init_zone()
855 i %= (kfifo_len(&zone->free_sectors) / 2); in sm_init_zone()
858 len = kfifo_out(&zone->free_sectors, in sm_init_zone()
861 kfifo_in(&zone->free_sectors, (const unsigned char *)&block, 2); in sm_init_zone()
956 if (kfifo_out(&zone->free_sectors, in sm_cache_flush()
1230 kfifo_free(&ftl->zones[i].free_sectors); in sm_remove_dev()
Dsm_ftl.h22 struct kfifo free_sectors; /* queue of free sectors */ member
/drivers/md/
Ddm-integrity.c225 unsigned free_sectors; member
1831 if (READ_ONCE(ic->free_sectors) <= ic->free_sectors_threshold) { in __journal_read_write()
1883 (sector_t)ic->free_sectors << ic->sb->log2_sectors_per_block); in dm_integrity_map_continue()
1891 ic->free_sectors -= range_sectors; in dm_integrity_map_continue()
2061 ic->free_sectors -= ic->journal_section_entries - ic->free_section_entry; in pad_uncommitted()
2069 ic->journal_section_entries + ic->free_sectors)) { in pad_uncommitted()
2075 ic->journal_section_entries, ic->free_sectors); in pad_uncommitted()
2132 if (READ_ONCE(ic->free_sectors) <= ic->free_sectors_threshold) in integrity_commit()
2332 prev_free_sectors = ic->free_sectors; in integrity_writer()
2333 ic->free_sectors += write_sections * ic->journal_section_entries; in integrity_writer()
[all …]