Home
last modified time | relevance | path

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

/linux-6.1.9/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()
281 part->blocks[block].free_sectors = 0; in erase_block()
289 part->blocks[block].free_sectors = 0; in erase_block()
296 part->blocks[block].free_sectors = part->data_sectors_per_block; in erase_block()
433 if (part->blocks[block].free_sectors) in reclaim_block()
464 part->blocks[best_block].free_sectors); in reclaim_block()
488 if (part->blocks[block].free_sectors && in find_free_block()
575 !part->blocks[block].free_sectors) in mark_sector_deleted()
[all …]
Dsm_ftl.c491 kfifo_in(&zone->free_sectors, in sm_erase_block()
772 if (kfifo_alloc(&zone->free_sectors, ftl->zone_size * 2, GFP_KERNEL)) { in sm_init_zone()
786 kfifo_free(&zone->free_sectors); in sm_init_zone()
795 kfifo_in(&zone->free_sectors, in sm_init_zone()
861 if (!kfifo_len(&zone->free_sectors)) { in sm_init_zone()
868 i %= (kfifo_len(&zone->free_sectors) / 2); in sm_init_zone()
871 len = kfifo_out(&zone->free_sectors, in sm_init_zone()
874 kfifo_in(&zone->free_sectors, (const unsigned char *)&block, 2); in sm_init_zone()
970 if (kfifo_out(&zone->free_sectors, in sm_cache_flush()
1244 kfifo_free(&ftl->zones[i].free_sectors); in sm_remove_dev()
Dsm_ftl.h22 struct kfifo free_sectors; /* queue of free sectors */ member
/linux-6.1.9/drivers/md/
Ddm-integrity.c241 unsigned free_sectors; member
2083 if (READ_ONCE(ic->free_sectors) <= ic->free_sectors_threshold) { in __journal_read_write()
2138 (sector_t)ic->free_sectors << ic->sb->log2_sectors_per_block); in dm_integrity_map_continue()
2146 ic->free_sectors -= range_sectors; in dm_integrity_map_continue()
2336 ic->free_sectors -= ic->journal_section_entries - ic->free_section_entry; in pad_uncommitted()
2344 ic->journal_section_entries + ic->free_sectors)) { in pad_uncommitted()
2350 ic->journal_section_entries, ic->free_sectors); in pad_uncommitted()
2409 if (READ_ONCE(ic->free_sectors) <= ic->free_sectors_threshold) in integrity_commit()
2613 prev_free_sectors = ic->free_sectors; in integrity_writer()
2614 ic->free_sectors += write_sections * ic->journal_section_entries; in integrity_writer()
[all …]