From d786bd1324c8bec66c86da73001e47f7f015c52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 13 Dec 2004 22:07:27 +0000 Subject: [PATCH] Renamed vfs_get_vnode() to vfs_lookup_vnode() as it doesn't grab a ref to the node. Added new vfs_get_vnode() that actually grabs such a ref. vfs_get_vnode_cache() now fills a vm_cache_ref instead of a void pointer. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10430 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/vfs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/headers/private/kernel/vfs.h b/headers/private/kernel/vfs.h index 07ce7dfdb9..621b8e4afb 100755 --- a/headers/private/kernel/vfs.h +++ b/headers/private/kernel/vfs.h @@ -24,6 +24,7 @@ struct kernel_args; +struct vm_cache_ref; struct file_descriptor; struct selectsync; struct pollfd; @@ -67,6 +68,7 @@ int vfs_setrlimit(int resource, const struct rlimit * rlp); int vfs_get_vnode_from_fd(int fd, bool kernel, void **vnode); status_t vfs_get_vnode_from_path(const char *path, bool kernel, void **vnode); status_t vfs_get_vnode(mount_id mountID, vnode_id vnodeID, void **_vnode); +status_t vfs_lookup_vnode(mount_id mountID, vnode_id vnodeID, void **_vnode); int vfs_put_vnode_ptr(void *vnode); void vfs_vnode_acquire_ref(void *vnode); void vfs_vnode_release_ref(void *vnode); @@ -74,7 +76,7 @@ status_t vfs_get_cookie_from_fd(int fd, void **_cookie); bool vfs_can_page(void *vnode, void *cookie); status_t vfs_read_pages(void *vnode, void *cookie, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes); status_t vfs_write_pages(void *vnode, void *cookie, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes); -status_t vfs_get_vnode_cache(void *vnode, void **_cache); +status_t vfs_get_vnode_cache(void *vnode, struct vm_cache_ref **_cache); status_t vfs_get_file_map( void *_vnode, off_t offset, size_t size, struct file_io_vec *vecs, size_t *_count); status_t vfs_get_fs_node_from_path(mount_id mountID, const char *path, bool kernel, void **_node);