Lines Matching refs:block_state
399 if (bi->block_state == YAFFS_BLOCK_STATE_EMPTY) { in yaffs_find_alloc_block()
400 bi->block_state = YAFFS_BLOCK_STATE_ALLOCATING; in yaffs_find_alloc_block()
455 bi->block_state = YAFFS_BLOCK_STATE_FULL; in yaffs_alloc_chunk()
494 if (bi->block_state == YAFFS_BLOCK_STATE_ALLOCATING) { in yaffs_skip_rest_of_block()
495 bi->block_state = YAFFS_BLOCK_STATE_FULL; in yaffs_skip_rest_of_block()
640 bi->block_state = YAFFS_BLOCK_STATE_DEAD; in yaffs_retire_block()
2318 block_no, bi->block_state, in yaffs_block_became_dirty()
2323 bi->block_state = YAFFS_BLOCK_STATE_DIRTY; in yaffs_block_became_dirty()
2370 bi->block_state = YAFFS_BLOCK_STATE_EMPTY; in yaffs_block_became_dirty()
2540 is_checkpt_block = (bi->block_state == YAFFS_BLOCK_STATE_CHECKPOINT); in yaffs_gc_block()
2549 if (bi->block_state == YAFFS_BLOCK_STATE_FULL) in yaffs_gc_block()
2550 bi->block_state = YAFFS_BLOCK_STATE_COLLECTING; in yaffs_gc_block()
2575 (bi->block_state == YAFFS_BLOCK_STATE_COLLECTING) && in yaffs_gc_block()
2590 if (bi->block_state == YAFFS_BLOCK_STATE_COLLECTING) { in yaffs_gc_block()
2595 bi->block_state = YAFFS_BLOCK_STATE_FULL; in yaffs_gc_block()
2655 if (bi->block_state == YAFFS_BLOCK_STATE_FULL && in yaffs_find_gc_block()
2728 if (bi->block_state == YAFFS_BLOCK_STATE_FULL && in yaffs_find_gc_block()
2953 bi->block_state != YAFFS_BLOCK_STATE_COLLECTING) { in yaffs_chunk_del()
2966 if (bi->block_state == YAFFS_BLOCK_STATE_ALLOCATING || in yaffs_chunk_del()
2967 bi->block_state == YAFFS_BLOCK_STATE_FULL || in yaffs_chunk_del()
2968 bi->block_state == YAFFS_BLOCK_STATE_NEEDS_SCAN || in yaffs_chunk_del()
2969 bi->block_state == YAFFS_BLOCK_STATE_COLLECTING) { in yaffs_chunk_del()
2976 bi->block_state != YAFFS_BLOCK_STATE_ALLOCATING && in yaffs_chunk_del()
2977 bi->block_state != YAFFS_BLOCK_STATE_NEEDS_SCAN) { in yaffs_chunk_del()
4937 switch (blk->block_state) { in yaffs_count_free_chunks()