Lines Matching refs:seq_number
53 seq = dev->seq_number + 1;
59 b->seq_number < seq) {
60 seq = b->seq_number;
83 * Called when a block is erased or marked bad. (ie. when its seq_number
94 if (!bi || bi->seq_number == dev->oldest_dirty_seq) {
112 if (dev->oldest_dirty_seq > bi->seq_number) {
113 dev->oldest_dirty_seq = bi->seq_number;
133 return (bi->seq_number <= dev->oldest_dirty_seq);
178 if (oldest < 1 || bi->seq_number < oldest_seq) {
180 oldest_seq = bi->seq_number;
188 "GC refresh count %d selected block %d with seq_number %d",
291 cp->seq_number = dev->seq_number;
306 dev->seq_number = cp->seq_number;
958 tags.seq_number = bi->seq_number;
993 if (dev->seq_number == bi->seq_number) {
1029 tags.seq_number != bi->seq_number) {
1356 u32 seq_number;
1369 dev->seq_number = YAFFS_LOWEST_SEQUENCE_NUMBER;
1399 yaffs_query_init_block_state(dev, blk, &state, &seq_number);
1402 bi->seq_number = seq_number;
1404 if (bi->seq_number == YAFFS_SEQUENCE_CHECKPOINT_DATA)
1406 if (bi->seq_number == YAFFS_SEQUENCE_BAD_BLOCK)
1411 blk, bi->block_state, seq_number);
1426 if (seq_number >= YAFFS_LOWEST_SEQUENCE_NUMBER &&
1427 seq_number < YAFFS_HIGHEST_SEQUENCE_NUMBER) {
1428 block_index[n_to_scan].seq = seq_number;
1431 if (seq_number >= dev->seq_number)
1432 dev->seq_number = seq_number;
1437 blk, seq_number);