13 |
|
#include "holo.h" |
14 |
|
|
15 |
|
#ifndef CACHESIZE |
16 |
< |
#define CACHESIZE 16 /* default cache size (Mbytes, 0==inf) */ |
16 |
> |
#ifdef BIGMEM |
17 |
> |
#define CACHESIZE 32 /* default cache size (Mbytes, 0==inf) */ |
18 |
> |
#else |
19 |
> |
#define CACHESIZE 12 |
20 |
|
#endif |
21 |
+ |
#endif |
22 |
|
#ifndef FREEBEAMS |
23 |
|
#define FREEBEAMS 1500 /* maximum beams to free at a time */ |
24 |
|
#endif |
558 |
|
} |
559 |
|
biglob(hp)->nrd -= bi->nrd; /* tell fragment it's free */ |
560 |
|
bi->nrd = 0; |
561 |
< |
bi->fo = 0; |
561 |
> |
bi->fo = 0L; |
562 |
|
return(1); |
563 |
|
} |
564 |
|
|
648 |
|
hp->bi[i].fo = nfo; |
649 |
|
} else |
650 |
|
hp->bi[i].fo = 0L; |
651 |
< |
biglob(hp)->nrd += hp->bi[i].nrd = nrays; |
651 |
> |
biglob(hp)->nrd += nrays - hp->bi[i].nrd; |
652 |
> |
hp->bi[i].nrd = nrays; |
653 |
|
markdirty(hp, i); /* section directory now out of date */ |
654 |
|
return(1); |
655 |
|
} |
724 |
|
if (hp->bi[i].nrd) { |
725 |
|
if (hdfragflags&FF_KILL) |
726 |
|
hdfreefrag(hp, i); |
727 |
+ |
biglob(hp)->nrd -= hp->bi[i].nrd; |
728 |
|
hp->bi[i].nrd = 0; /* make sure it's gone */ |
729 |
|
hp->bi[i].fo = 0L; |
730 |
|
} |