u64 pos;
if (duration != 0)
- div_u64(new_checked, duration);
+ new_checked = div64_s64(new_checked, duration);
if (rtime != 0)
- div_u64(speed, rtime);
+ speed = div64_s64(speed, rtime);
seq_printf(m, "checked_phase1: %llu\n"
"checked_phase2: %llu\n"
"run_time_phase1: %lld seconds\n"
time64_t rtime = lo->ll_run_time_phase2 + duration;
if (duration != 0)
- div_u64(new_checked, duration);
+ new_checked = div64_s64(new_checked, duration);
if (lo->ll_run_time_phase1 != 0)
- div_u64(speed1, lo->ll_run_time_phase1);
+ speed1 = div64_s64(speed1, lo->ll_run_time_phase1);
if (rtime != 0)
- div_u64(speed2, rtime);
+ speed2 = div64_s64(speed2, rtime);
seq_printf(m, "checked_phase1: %llu\n"
"checked_phase2: %llu\n"
"run_time_phase1: %lld seconds\n"
__u64 speed2 = lo->ll_objs_checked_phase2;
if (lo->ll_run_time_phase1 != 0)
- div_u64(speed1, lo->ll_run_time_phase1);
+ speed1 = div64_s64(speed1, lo->ll_run_time_phase1);
if (lo->ll_run_time_phase2 != 0)
- div_u64(speed2, lo->ll_run_time_phase2);
+ speed2 = div64_s64(speed2, lo->ll_run_time_phase2);
seq_printf(m, "checked_phase1: %llu\n"
"checked_phase2: %llu\n"
"run_time_phase1: %lld seconds\n"
time64_t rtime = ns->ln_run_time_phase1 + duration;
if (duration != 0)
- div_u64(new_checked, duration);
+ new_checked = div64_s64(new_checked, duration);
if (rtime != 0)
- div_u64(speed, rtime);
+ speed = div64_s64(speed, rtime);
lfsck_namespace_dump_statistics(m, ns, checked, 0, rtime, 0,
bk->lb_param & LPF_DRYRUN);
time64_t time0 = ns->ln_run_time_phase1 + rtime;
if (duration != 0)
- div_u64(new_checked, duration);
+ new_checked = div64_s64(new_checked, duration);
if (ns->ln_run_time_phase1 != 0)
- div_u64(speed1, ns->ln_run_time_phase1);
+ speed1 = div64_s64(speed1, ns->ln_run_time_phase1);
else if (ns->ln_items_checked != 0)
time0++;
if (rtime != 0)
- div_u64(speed2, rtime);
+ speed2 = div64_s64(speed2, rtime);
else if (checked != 0)
time0++;
if (time0 != 0)
- div_u64(speed0, time0);
+ speed0 = div64_s64(speed0, time0);
lfsck_namespace_dump_statistics(m, ns, ns->ln_items_checked,
checked,
time64_t time0 = ns->ln_run_time_phase1 + ns->ln_run_time_phase2;
if (ns->ln_run_time_phase1 != 0)
- div_u64(speed1, ns->ln_run_time_phase1);
+ speed1 = div64_s64(speed1, ns->ln_run_time_phase1);
else if (ns->ln_items_checked != 0)
time0++;
if (ns->ln_run_time_phase2 != 0)
- div_u64(speed2, ns->ln_run_time_phase2);
+ speed2 = div64_s64(speed2, ns->ln_run_time_phase2);
else if (ns->ln_objs_checked_phase2 != 0)
time0++;
if (time0 != 0)
- div_u64(speed0, time0);
+ speed0 = div64_s64(speed0, time0);
lfsck_namespace_dump_statistics(m, ns, ns->ln_items_checked,
ns->ln_objs_checked_phase2,
[ $SPEED -lt $MAX_SPEED ] || {
$SHOW_LAYOUT
log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
- error_ignore LU-9887 "(4) Speed $SPEED, expected < $MAX_SPEED"
+ error "(4) Speed $SPEED, expected < $MAX_SPEED"
}
# adjust speed limit
$SHOW_LAYOUT
log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
log "speed2: $BASE_SPEED2 time2: $RUN_TIME2"
- error_ignore LU-9887 "(6) Speed $SPEED, expected < $MAX_SPEED"
+ error "(6) Speed $SPEED, expected < $MAX_SPEED"
}
do_facet $SINGLEMDS \
[ $SPEED -lt $MAX_SPEED ] || {
$SHOW_NAMESPACE
log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
- error_ignore LU-9887 "(8) Speed $SPEED, expected < $MAX_SPEED"
+ error "(8) Speed $SPEED, expected < $MAX_SPEED"
}
# adjust speed limit
$SHOW_NAMESPACE
log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
log "speed2: $BASE_SPEED2 time2: $RUN_TIME2"
- error_ignore LU-9887 "(10) Speed $SPEED, expected < $MAX_SPEED"
+ error "(10) Speed $SPEED, expected < $MAX_SPEED"
}
do_facet $SINGLEMDS \