The vnode->private_node holds our object, not vnode itself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35191 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1937,7 +1937,7 @@ overlay_create_sub_vnode(fs_volume *volume, ino_t id, fs_vnode *vnode)
|
|||||||
static status_t
|
static status_t
|
||||||
overlay_delete_sub_vnode(fs_volume *volume, fs_vnode *vnode)
|
overlay_delete_sub_vnode(fs_volume *volume, fs_vnode *vnode)
|
||||||
{
|
{
|
||||||
delete (OverlayInode *)vnode;
|
delete (OverlayInode *)vnode->private_node;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2510,7 +2510,7 @@ overlay_create_sub_vnode(fs_volume *volume, ino_t id, fs_vnode *vnode)
|
|||||||
static status_t
|
static status_t
|
||||||
overlay_delete_sub_vnode(fs_volume *volume, fs_vnode *vnode)
|
overlay_delete_sub_vnode(fs_volume *volume, fs_vnode *vnode)
|
||||||
{
|
{
|
||||||
delete (OverlayInode *)vnode;
|
delete (OverlayInode *)vnode->private_node;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user