cache_prefetch() now comes in two flavours: one with a direct vnode pointer,

the other one with usual device/inode ID pair.
Both versions now accept an offset/size pair to specify the region of the
file to be prefetched - this may be turned into a file_vec_io array later on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13866 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-08-01 14:24:58 +00:00
parent b7d8ef5a0d
commit 186857529e
2 changed files with 26 additions and 17 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ extern void cache_node_opened(void *vnode, int32 fdType, vm_cache_ref *cache,
extern void cache_node_closed(void *vnode, int32 fdType, vm_cache_ref *cache,
mount_id mountID, vnode_id vnodeID);
extern void cache_node_launched(size_t argCount, char * const *args);
extern void cache_prefetch(mount_id mountID, vnode_id vnodeID);
extern void cache_prefetch_vnode(void *vnode, off_t offset, size_t size);
extern void cache_prefetch(mount_id mountID, vnode_id vnodeID, off_t offset, size_t size);
extern status_t file_cache_init(void);
extern vm_store *vm_create_vnode_store(void *vnode);