diff --git a/src/kernel/core/cache/block_cache.cpp b/src/kernel/core/cache/block_cache.cpp index c91a118bf7..05558c251d 100644 --- a/src/kernel/core/cache/block_cache.cpp +++ b/src/kernel/core/cache/block_cache.cpp @@ -38,7 +38,8 @@ #define DEBUG_CHANGED struct cache_transaction; -typedef DoublyLinked::Link block_link; +struct cached_block; +typedef DoublyLinkedListLink block_link; struct cached_block { cached_block *next; // next in hash @@ -67,7 +68,9 @@ struct block_cache { hash_table *transaction_hash; }; -typedef DoublyLinked::List block_list; +typedef DoublyLinkedList > block_list; struct cache_transaction { cache_transaction *next; @@ -514,7 +517,7 @@ cache_sync_transaction(void *_cache, int32 id) if (transaction->id <= id && !transaction->open) { while (transaction->num_blocks > 0) { - status = write_cached_block(cache, block_list::GetItem(transaction->blocks.Head()), false); + status = write_cached_block(cache, transaction->blocks.Head(), false); if (status != B_OK) return status; } diff --git a/src/kernel/core/fs/IOScheduler.h b/src/kernel/core/fs/IOScheduler.h index afeef47f90..4f53b6c353 100644 --- a/src/kernel/core/fs/IOScheduler.h +++ b/src/kernel/core/fs/IOScheduler.h @@ -14,7 +14,7 @@ #include -class IORequest { +class IORequest : public DoublyLinkedListLinkImpl { public: IORequest(void *cookie, off_t offset, void *buffer, size_t size, bool write = false); IORequest(void *cookie, off_t offset, const void *buffer, size_t size, bool write = true); @@ -22,8 +22,6 @@ class IORequest { size_t Size() const { return size; } - DoublyLinked::Link link; - void *cookie; addr_t physical_address; addr_t virtual_address; @@ -54,7 +52,7 @@ class IOScheduler { pnp_devfs_driver_info *fDeviceHooks; mutex fLock; thread_id fThread; - DoublyLinked::List fRequests; + DoublyLinkedList fRequests; }; #endif /* IO_SCHEDULER_H */