Lines Matching refs:sec_closed
594 int sec_closed; in zms_compute_prev_addr() local
611 sec_closed = zms_validate_closed_sector(fs, *addr, &empty_ate, &close_ate); in zms_compute_prev_addr()
612 if (sec_closed < 0) { in zms_compute_prev_addr()
613 return sec_closed; in zms_compute_prev_addr()
617 if (!sec_closed) { in zms_compute_prev_addr()
878 int sec_closed; in zms_gc() local
922 sec_closed = zms_validate_closed_sector(fs, gc_addr, &empty_ate, &close_ate); in zms_gc()
923 if (sec_closed < 0) { in zms_gc()
924 return sec_closed; in zms_gc()
928 if (!sec_closed) { in zms_gc()
1067 int sec_closed; in zms_init() local
1088 sec_closed = zms_validate_closed_sector(fs, addr, &empty_ate, &close_ate); in zms_init()
1089 if (sec_closed < 0) { in zms_init()
1090 rc = sec_closed; in zms_init()
1096 if (sec_closed == 1) { in zms_init()
1113 sec_closed = zms_validate_closed_sector(fs, addr, &empty_ate, &close_ate); in zms_init()
1114 if (sec_closed < 0) { in zms_init()
1115 rc = sec_closed; in zms_init()
1121 if (!sec_closed) { in zms_init()
1240 sec_closed = zms_validate_closed_sector(fs, addr, &empty_ate, &close_ate); in zms_init()
1241 if (sec_closed < 0) { in zms_init()
1242 rc = sec_closed; in zms_init()
1246 if (sec_closed == 1) { in zms_init()
1664 int sec_closed; in zms_calc_free_space() local
1745 sec_closed = zms_validate_closed_sector(fs, step_addr, &empty_ate, &close_ate); in zms_calc_free_space()
1746 if (sec_closed < 0) { in zms_calc_free_space()
1747 return sec_closed; in zms_calc_free_space()
1754 if ((sec_closed == 1) && (close_ate.offset <= second_to_last_offset)) { in zms_calc_free_space()
1756 } else if (!sec_closed) { in zms_calc_free_space()