Lines Matching refs:block_state
56 if (b->block_state == YAFFS_BLOCK_STATE_FULL && in yaffs_calc_oldest_dirty_seq()
176 if (bi->block_state == YAFFS_BLOCK_STATE_FULL) { in yaffs2_find_refresh_block()
987 bi->block_state = YAFFS_BLOCK_STATE_EMPTY; in yaffs2_scan_chunk()
990 if (bi->block_state == YAFFS_BLOCK_STATE_NEEDS_SCAN || in yaffs2_scan_chunk()
991 bi->block_state == YAFFS_BLOCK_STATE_ALLOCATING) { in yaffs2_scan_chunk()
998 bi->block_state = in yaffs2_scan_chunk()
1395 bi->block_state = state; in yaffs2_scan_backwards()
1399 bi->block_state = YAFFS_BLOCK_STATE_CHECKPOINT; in yaffs2_scan_backwards()
1401 bi->block_state = YAFFS_BLOCK_STATE_DEAD; in yaffs2_scan_backwards()
1405 blk, bi->block_state, seq_number); in yaffs2_scan_backwards()
1407 if (bi->block_state == YAFFS_BLOCK_STATE_CHECKPOINT) { in yaffs2_scan_backwards()
1410 } else if (bi->block_state == YAFFS_BLOCK_STATE_DEAD) { in yaffs2_scan_backwards()
1413 } else if (bi->block_state == YAFFS_BLOCK_STATE_EMPTY) { in yaffs2_scan_backwards()
1417 } else if (bi->block_state == in yaffs2_scan_backwards()
1477 (bi->block_state == YAFFS_BLOCK_STATE_NEEDS_SCAN || in yaffs2_scan_backwards()
1478 bi->block_state == YAFFS_BLOCK_STATE_ALLOCATING); in yaffs2_scan_backwards()
1490 if (bi->block_state == YAFFS_BLOCK_STATE_NEEDS_SCAN) { in yaffs2_scan_backwards()
1493 bi->block_state = YAFFS_BLOCK_STATE_FULL; in yaffs2_scan_backwards()
1499 bi->block_state == YAFFS_BLOCK_STATE_FULL) { in yaffs2_scan_backwards()