Changeset 20235a3 in mainline for uspace/srv/vfs/vfs_ops.c
- Timestamp:
- 2010-09-02T20:55:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0c39b96
- Parents:
- 0c61955 (diff), 3249673 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
r0c61955 r20235a3 131 131 if (rc != EOK) { 132 132 async_wait_for(msg, NULL); 133 vfs_release_phone( phone);133 vfs_release_phone(fs_handle, phone); 134 134 fibril_rwlock_write_unlock(&namespace_rwlock); 135 135 ipc_answer_0(rid, rc); … … 137 137 } 138 138 async_wait_for(msg, &rc); 139 vfs_release_phone( phone);139 vfs_release_phone(fs_handle, phone); 140 140 141 141 if (rc != EOK) { … … 196 196 if (rc != EOK) { 197 197 async_wait_for(msg, NULL); 198 vfs_release_phone( mountee_phone);199 vfs_release_phone( phone);198 vfs_release_phone(fs_handle, mountee_phone); 199 vfs_release_phone(mp_res.triplet.fs_handle, phone); 200 200 /* Mount failed, drop reference to mp_node. */ 201 201 if (mp_node) … … 206 206 } 207 207 208 vfs_release_phone( mountee_phone);208 vfs_release_phone(fs_handle, mountee_phone); 209 209 210 210 /* send the mount options */ … … 212 212 if (rc != EOK) { 213 213 async_wait_for(msg, NULL); 214 vfs_release_phone( phone);214 vfs_release_phone(mp_res.triplet.fs_handle, phone); 215 215 /* Mount failed, drop reference to mp_node. */ 216 216 if (mp_node) … … 221 221 } 222 222 async_wait_for(msg, &rc); 223 vfs_release_phone( phone);223 vfs_release_phone(mp_res.triplet.fs_handle, phone); 224 224 225 225 if (rc == EOK) { … … 423 423 rc = async_req_1_0(phone, VFS_OUT_UNMOUNTED, 424 424 mr_node->dev_handle); 425 vfs_release_phone( phone);425 vfs_release_phone(mr_node->fs_handle, phone); 426 426 if (rc != EOK) { 427 427 fibril_rwlock_write_unlock(&namespace_rwlock); … … 460 460 rc = async_req_2_0(phone, VFS_OUT_UNMOUNT, mp_node->dev_handle, 461 461 mp_node->index); 462 vfs_release_phone( phone);462 vfs_release_phone(mp_node->fs_handle, phone); 463 463 if (rc != EOK) { 464 464 fibril_rwlock_write_unlock(&namespace_rwlock); … … 716 716 async_wait_for(msg, &rc); 717 717 718 vfs_release_phone(f s_phone);718 vfs_release_phone(file->node->fs_handle, fs_phone); 719 719 fibril_mutex_unlock(&file->lock); 720 720 … … 747 747 async_wait_for(msg, &rc); 748 748 749 vfs_release_phone(f s_phone);749 vfs_release_phone(file->node->fs_handle, fs_phone); 750 750 fibril_mutex_unlock(&file->lock); 751 751 … … 846 846 } 847 847 848 vfs_release_phone(f s_phone);848 vfs_release_phone(file->node->fs_handle, fs_phone); 849 849 850 850 size_t bytes = IPC_GET_ARG1(answer); … … 970 970 rc = async_req_4_0(fs_phone, VFS_OUT_TRUNCATE, (ipcarg_t) dev_handle, 971 971 (ipcarg_t) index, LOWER32(size), UPPER32(size)); 972 vfs_release_phone(fs_ phone);972 vfs_release_phone(fs_handle, fs_phone); 973 973 return (int)rc; 974 974 } … … 1026 1026 ipc_forward_fast(callid, fs_phone, 0, 0, 0, IPC_FF_ROUTE_FROM_ME); 1027 1027 async_wait_for(msg, &rc); 1028 vfs_release_phone(f s_phone);1028 vfs_release_phone(file->node->fs_handle, fs_phone); 1029 1029 1030 1030 fibril_mutex_unlock(&file->lock); … … 1077 1077 ipcarg_t rv; 1078 1078 async_wait_for(msg, &rv); 1079 vfs_release_phone( fs_phone);1079 vfs_release_phone(node->fs_handle, fs_phone); 1080 1080 1081 1081 ipc_answer_0(rid, rv);
Note:
See TracChangeset
for help on using the changeset viewer.