112,7 → 112,7 |
TRACER_LOGEVENT(FTrace_EVT_server_replenish,1,(int)(b),0); |
|
if (b->flags==GRUBSTAR_RECLAIMING && b->avail>0) |
lev->Uf += b->Ub; |
if (lev->Uf < lev->U) lev->Uf += b->Ub; |
|
if (b->avail > 0) b->flags = GRUBSTAR_ACTIVE; |
|
209,7 → 209,7 |
} |
|
if (b->flags==GRUBSTAR_RECLAIMING) |
lev->Uf += b->Ub; |
if (lev->Uf < lev->U) lev->Uf += b->Ub; |
|
b->flags=GRUBSTAR_ACTIVE; |
|
252,6 → 252,9 |
|
b->avail -= tx - b->last_reclaiming; |
|
if (b->last_reclaiming > 0) |
TRACER_LOGEVENT(FTrace_EVT_server_using_rec,3,(int)(b),b->last_reclaiming); |
|
#ifdef GRUBSTAR_DEBUG |
kern_printf("(GS:Cap p%d av=%d tx=%d rec=%d)", p, b->avail,(int)tx,b->last_reclaiming); |
#endif |
319,7 → 322,7 |
TRACER_LOGEVENT(FTrace_EVT_server_replenish,1,(int)(b),0); |
|
if (b->flags == GRUBSTAR_RECLAIMING) { |
lev->Uf += b->Ub; |
if (lev->Uf < lev->U) lev->Uf += b->Ub; |
} |
|
b->flags = GRUBSTAR_ACTIVE; |