Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | dc4023a6696f80e9f396c18aad087a46ee488be1 |
|---|---|
| Date: | 2010-03-10 21:10:33 |
| User: | stephan |
| Comment: | lowered default block list allocation increment. Need to test it on 64-bit again (where a low value was giving me a problem). |
Tags And Properties
- branch=trunk inherited from [c3e484d316]
- sym-trunk inherited from [c3e484d316]
Changes
Changes to pfs/block.c
| Old (1e84b7cb082f26a7) | New (aacfd6b5d64226d7) | |||
|---|---|---|---|---|
| 1 | /************************************************************************ | 1 | /************************************************************************ | |
| 2 | FAR FROM COMPLETE. | 2 | FAR FROM COMPLETE. | |
| 3 | 3 | |||
| 4 | This is a work-in-progress, porting over parts of the whefs API into | 4 | This is a work-in-progress, porting over parts of the whefs API into | |
| 5 | the whio API... | 5 | the whio API... | |
| 73 hidden lines | ||||
| 79 | (and i have no idea where it's coming from - everything else | 79 | (and i have no idea where it's coming from - everything else | |
| 80 | seems to work). However, if i increase allocIncrement to 10, this | 80 | seems to work). However, if i increase allocIncrement to 10, this | |
| 81 | problem goes away. This needs more testing when i have access | 81 | problem goes away. This needs more testing when i have access | |
| 82 | to a 64-bit machine with a graphical debugger. | 82 | to a 64-bit machine with a graphical debugger. | |
| 83 | */ | 83 | */ | |
| 84 | static whio_epfs_id_t allocIncrement = 10; | | | 84 | static whio_epfs_id_t allocIncrement = 6; |
| 85 | if( bli->alloced <= bli->count ) | 85 | if( bli->alloced <= bli->count ) | |
| 86 | { | 86 | { | |
| 87 | rc = whio_epfs_block_list_reserve( fs, bli, bli->count + allocIncrement ); | 87 | rc = whio_epfs_block_list_reserve( fs, bli, bli->count + allocIncrement ); | |
| 88 | if( whio_rc.OK != rc ) return rc; | 88 | if( whio_rc.OK != rc ) return rc; | |
| 89 | } | 89 | } | |
| 743 hidden lines | ||||
| 833 | return rc; | 833 | return rc; | |
| 834 | } | 834 | } | |
| 835 | } | 835 | } | |
| 836 | 836 | |||
| 837 | #undef MARKER | 837 | #undef MARKER | |