Some minor cleanup: removed unneeded includes, updated introducing comment.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-06-02 18:23:26 +00:00
parent 2bf60609ee
commit 19b77242ac
3 changed files with 8 additions and 25 deletions
-8
View File
@@ -7,20 +7,12 @@
#include "block_cache_private.h" #include "block_cache_private.h"
#include <KernelExport.h> #include <KernelExport.h>
#include <fs_cache.h>
#include <lock.h>
#include <util/kernel_cpp.h>
#include <util/DoublyLinkedList.h>
#include <util/AutoLock.h> #include <util/AutoLock.h>
#include <util/khash.h>
#include <vm.h> #include <vm.h>
#include <vm_page.h> #include <vm_page.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <errno.h>
static class BlockAddressPool sBlockAddressPool; static class BlockAddressPool sBlockAddressPool;
+5 -8
View File
@@ -15,8 +15,6 @@
#include <util/DoublyLinkedList.h> #include <util/DoublyLinkedList.h>
#include <util/AutoLock.h> #include <util/AutoLock.h>
#include <util/khash.h> #include <util/khash.h>
#include <vm.h>
#include <vm_page.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
@@ -24,14 +22,13 @@
#include <errno.h> #include <errno.h>
// ToDo: this is a naive implementation to test the API: // ToDo: this is a naive but growing implementation to test the API:
// 1) it does not have any useful memory management (just uses malloc/free) // 1) block reading/writing is not at all optimized for speed, it will
// 2) block reading/writing is not at all optimized for speed, it will
// just read and write single blocks. // just read and write single blocks.
// 3) the locking could be improved; getting a block should not need to // 2) the locking could be improved; getting a block should not need to
// wait for blocks to be written // wait for blocks to be written
// 4) dirty blocks are only written back if asked for // 3) dirty blocks are only written back if asked for
// 5) blocks are never removed yet // 4) blocks are never removed yet
#define TRACE_BLOCK_CACHE #define TRACE_BLOCK_CACHE
#ifdef TRACE_BLOCK_CACHE #ifdef TRACE_BLOCK_CACHE
+3 -9
View File
@@ -6,17 +6,11 @@
#define BLOCK_CACHE_PRIVATE_H #define BLOCK_CACHE_PRIVATE_H
#include <KernelExport.h>
#include <fs_cache.h>
#include <block_cache.h>
#include <lock.h> #include <lock.h>
#include <util/kernel_cpp.h>
#include <util/DoublyLinkedList.h> #include <util/DoublyLinkedList.h>
#include <util/AutoLock.h>
#include <util/khash.h> struct hash_table;
#include <vm.h> struct vm_page;
#include <vm_page.h>
#define DEBUG_CHANGED #define DEBUG_CHANGED