The term vnode_ptr is not used anywhere else; renamed vfs_put_vnode_ptr() to vfs_put_vnode().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13865 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-08-01 14:17:41 +00:00
parent 433cc8c2c9
commit b7d8ef5a0d
3 changed files with 6 additions and 9 deletions

View File

@ -69,7 +69,7 @@ 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_put_vnode(void *vnode);
void vfs_vnode_acquire_ref(void *vnode);
void vfs_vnode_release_ref(void *vnode);
status_t vfs_get_cookie_from_fd(int fd, void **_cookie);

View File

@ -667,7 +667,7 @@ unload_elf_image(struct elf_image_info *image)
delete_area(image->data_region.id);
if (image->vnode)
vfs_put_vnode_ptr(image->vnode);
vfs_put_vnode(image->vnode);
unregister_elf_image(image);
@ -1405,7 +1405,7 @@ error:
mutex_unlock(&sImageLoadMutex);
error0:
if (vnode)
vfs_put_vnode_ptr(vnode);
vfs_put_vnode(vnode);
_kern_close(fd);
return err;

View File

@ -2405,13 +2405,10 @@ vfs_normalize_path(const char *path, char *buffer, size_t bufferSize,
}
int
vfs_put_vnode_ptr(void *_vnode)
extern "C" void
vfs_put_vnode(void *_vnode)
{
struct vnode *vnode = (struct vnode *)_vnode;
put_vnode(vnode);
return 0;
put_vnode((struct vnode *)_vnode);
}