/trunk/uspace/srv/vfs/vfs_ops.c |
---|
677,7 → 677,7 |
/* |
* The name has already been unlinked by vfs_lookup_internal(). |
* We have to get and put the VFS node to ensure that it is |
* VFS_FREE'd after the last reference to it is dropped. |
* VFS_DESTROY'ed after the last reference to it is dropped. |
*/ |
vfs_node_t *node = vfs_node_get(&lr); |
node->lnkcnt--; |
/trunk/uspace/srv/vfs/vfs.h |
---|
57,7 → 57,7 |
typedef enum { |
VFS_LOOKUP = VFS_LAST_CMN, |
VFS_FREE, |
VFS_DESTROY, |
VFS_LAST_CLNT, /* keep this the last member of this enum */ |
} vfs_request_clnt_t; |
/trunk/uspace/srv/vfs/vfs_node.c |
---|
131,8 → 131,8 |
*/ |
int phone = vfs_grab_phone(node->fs_handle); |
ipcarg_t rc; |
rc = async_req_2_0(phone, VFS_FREE, (ipcarg_t)node->dev_handle, |
(ipcarg_t)node->index); |
rc = async_req_2_0(phone, VFS_DESTROY, |
(ipcarg_t)node->dev_handle, (ipcarg_t)node->index); |
assert(rc == EOK); |
vfs_release_phone(phone); |
} |