unsigned int i;
/* 1. check sit usage with CP: curseg is lost? */
- for (i = 0; i < TOTAL_SEGS(sbi); i++) {
+ for (i = 0; i < MAIN_SEGS(sbi); i++) {
se = get_seg_entry(sbi, i);
if (se->valid_blocks != 0)
sit_valid_segs++;
unsigned int i;
int err = 0;
- for (i = 0; i < TOTAL_SEGS(sbi); i++) {
+ for (i = 0; i < MAIN_SEGS(sbi); i++) {
struct seg_entry *se;
se = get_seg_entry(sbi, i);