|
Lines 527-533
Link Here
|
| 527 |
* Here we add or subtract (sign +1/-1) the available fragments in a given |
527 |
* Here we add or subtract (sign +1/-1) the available fragments in a given |
| 528 |
* block to or from the fragment statistics. By subtracting before and adding |
528 |
* block to or from the fragment statistics. By subtracting before and adding |
| 529 |
* after an operation on the free frag map we can easy update the fragment |
529 |
* after an operation on the free frag map we can easy update the fragment |
| 530 |
* statistic, which seems to be otherwise an rather complex operation. |
530 |
* statistic, which seems to be otherwise a rather complex operation. |
| 531 |
*/ |
531 |
*/ |
| 532 |
static void |
532 |
static void |
| 533 |
frag_adjust(daddr_t frag, int sign) |
533 |
frag_adjust(daddr_t frag, int sign) |
|
Lines 807-813
Link Here
|
| 807 |
updclst((osblock.fs_size-cbase)/sblock.fs_frag); |
807 |
updclst((osblock.fs_size-cbase)/sblock.fs_frag); |
| 808 |
} else { |
808 |
} else { |
| 809 |
/* |
809 |
/* |
| 810 |
* Lets rejoin a possible partially growed |
810 |
* Lets rejoin a possible partially grown |
| 811 |
* fragment. |
811 |
* fragment. |
| 812 |
*/ |
812 |
*/ |
| 813 |
k=0; |
813 |
k=0; |
|
Lines 835-841
Link Here
|
| 835 |
j++; |
835 |
j++; |
| 836 |
} |
836 |
} |
| 837 |
/* |
837 |
/* |
| 838 |
* Lets rejoin a possible partially growed fragment. |
838 |
* Lets rejoin a possible partially grown fragment. |
| 839 |
*/ |
839 |
*/ |
| 840 |
k=0; |
840 |
k=0; |
| 841 |
while(isset(cg_blksfree(&acg), i) && |
841 |
while(isset(cg_blksfree(&acg), i) && |