* Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28497 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+11
-5
@@ -1928,7 +1928,8 @@ cache_end_transaction(void *_cache, int32 id,
|
|||||||
|
|
||||||
// iterate through all blocks and free the unchanged original contents
|
// iterate through all blocks and free the unchanged original contents
|
||||||
|
|
||||||
cached_block *block = transaction->first_block, *next;
|
cached_block* block = transaction->first_block;
|
||||||
|
cached_block* next;
|
||||||
for (; block != NULL; block = next) {
|
for (; block != NULL; block = next) {
|
||||||
next = block->transaction_next;
|
next = block->transaction_next;
|
||||||
|
|
||||||
@@ -1979,7 +1980,8 @@ cache_abort_transaction(void *_cache, int32 id)
|
|||||||
|
|
||||||
// iterate through all blocks and restore their original contents
|
// iterate through all blocks and restore their original contents
|
||||||
|
|
||||||
cached_block *block = transaction->first_block, *next;
|
cached_block* block = transaction->first_block;
|
||||||
|
cached_block* next;
|
||||||
for (; block != NULL; block = next) {
|
for (; block != NULL; block = next) {
|
||||||
next = block->transaction_next;
|
next = block->transaction_next;
|
||||||
|
|
||||||
@@ -2046,7 +2048,9 @@ cache_detach_sub_transaction(void *_cache, int32 id,
|
|||||||
|
|
||||||
// iterate through all blocks and free the unchanged original contents
|
// iterate through all blocks and free the unchanged original contents
|
||||||
|
|
||||||
cached_block *block = transaction->first_block, *next, *last = NULL;
|
cached_block* block = transaction->first_block;
|
||||||
|
cached_block* last = NULL;
|
||||||
|
cached_block* next;
|
||||||
for (; block != NULL; block = next) {
|
for (; block != NULL; block = next) {
|
||||||
next = block->transaction_next;
|
next = block->transaction_next;
|
||||||
|
|
||||||
@@ -2121,7 +2125,8 @@ cache_abort_sub_transaction(void *_cache, int32 id)
|
|||||||
|
|
||||||
// revert all changes back to the version of the parent
|
// revert all changes back to the version of the parent
|
||||||
|
|
||||||
cached_block *block = transaction->first_block, *next;
|
cached_block* block = transaction->first_block;
|
||||||
|
cached_block* next;
|
||||||
for (; block != NULL; block = next) {
|
for (; block != NULL; block = next) {
|
||||||
next = block->transaction_next;
|
next = block->transaction_next;
|
||||||
|
|
||||||
@@ -2169,7 +2174,8 @@ cache_start_sub_transaction(void *_cache, int32 id)
|
|||||||
|
|
||||||
// move all changed blocks up to the parent
|
// move all changed blocks up to the parent
|
||||||
|
|
||||||
cached_block *block = transaction->first_block, *next;
|
cached_block* block = transaction->first_block;
|
||||||
|
cached_block* next;
|
||||||
for (; block != NULL; block = next) {
|
for (; block != NULL; block = next) {
|
||||||
next = block->transaction_next;
|
next = block->transaction_next;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user