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:
parent
2bf60609ee
commit
19b77242ac
8
src/system/kernel/cache/block_allocator.cpp
vendored
8
src/system/kernel/cache/block_allocator.cpp
vendored
@ -7,20 +7,12 @@
|
||||
#include "block_cache_private.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/khash.h>
|
||||
#include <vm.h>
|
||||
#include <vm_page.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
static class BlockAddressPool sBlockAddressPool;
|
||||
|
13
src/system/kernel/cache/block_cache.cpp
vendored
13
src/system/kernel/cache/block_cache.cpp
vendored
@ -15,8 +15,6 @@
|
||||
#include <util/DoublyLinkedList.h>
|
||||
#include <util/AutoLock.h>
|
||||
#include <util/khash.h>
|
||||
#include <vm.h>
|
||||
#include <vm_page.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
@ -24,14 +22,13 @@
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
// ToDo: this is a naive implementation to test the API:
|
||||
// 1) it does not have any useful memory management (just uses malloc/free)
|
||||
// 2) block reading/writing is not at all optimized for speed, it will
|
||||
// ToDo: this is a naive but growing implementation to test the API:
|
||||
// 1) block reading/writing is not at all optimized for speed, it will
|
||||
// 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
|
||||
// 4) dirty blocks are only written back if asked for
|
||||
// 5) blocks are never removed yet
|
||||
// 3) dirty blocks are only written back if asked for
|
||||
// 4) blocks are never removed yet
|
||||
|
||||
#define TRACE_BLOCK_CACHE
|
||||
#ifdef TRACE_BLOCK_CACHE
|
||||
|
12
src/system/kernel/cache/block_cache_private.h
vendored
12
src/system/kernel/cache/block_cache_private.h
vendored
@ -6,17 +6,11 @@
|
||||
#define BLOCK_CACHE_PRIVATE_H
|
||||
|
||||
|
||||
#include <KernelExport.h>
|
||||
#include <fs_cache.h>
|
||||
|
||||
#include <block_cache.h>
|
||||
#include <lock.h>
|
||||
#include <util/kernel_cpp.h>
|
||||
#include <util/DoublyLinkedList.h>
|
||||
#include <util/AutoLock.h>
|
||||
#include <util/khash.h>
|
||||
#include <vm.h>
|
||||
#include <vm_page.h>
|
||||
|
||||
struct hash_table;
|
||||
struct vm_page;
|
||||
|
||||
|
||||
#define DEBUG_CHANGED
|
||||
|
Loading…
Reference in New Issue
Block a user