Changes in uspace/srv/vfs/vfs_ops.c [df908b3:1882525] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
rdf908b3 r1882525 131 131 if (rc != EOK) { 132 132 async_wait_for(msg, NULL); 133 vfs_release_phone( fs_handle,phone);133 vfs_release_phone(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( fs_handle,phone);139 vfs_release_phone(phone); 140 140 141 141 if (rc != EOK) { … … 196 196 if (rc != EOK) { 197 197 async_wait_for(msg, NULL); 198 vfs_release_phone( fs_handle,mountee_phone);199 vfs_release_phone( mp_res.triplet.fs_handle,phone);198 vfs_release_phone(mountee_phone); 199 vfs_release_phone(phone); 200 200 /* Mount failed, drop reference to mp_node. */ 201 201 if (mp_node) … … 206 206 } 207 207 208 vfs_release_phone( fs_handle,mountee_phone);208 vfs_release_phone(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( mp_res.triplet.fs_handle,phone);214 vfs_release_phone(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( mp_res.triplet.fs_handle,phone);223 vfs_release_phone(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( mr_node->fs_handle,phone);425 vfs_release_phone(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( mp_node->fs_handle,phone);462 vfs_release_phone(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 ile->node->fs_handle, fs_phone);718 vfs_release_phone(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 ile->node->fs_handle, fs_phone);749 vfs_release_phone(fs_phone); 750 750 fibril_mutex_unlock(&file->lock); 751 751 … … 846 846 } 847 847 848 vfs_release_phone(f ile->node->fs_handle, fs_phone);848 vfs_release_phone(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_ handle, fs_phone);972 vfs_release_phone(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 ile->node->fs_handle, fs_phone);1028 vfs_release_phone(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( node->fs_handle,fs_phone);1079 vfs_release_phone(fs_phone); 1080 1080 1081 1081 ipc_answer_0(rid, rv); … … 1355 1355 int ret = vfs_close_internal(newfile); 1356 1356 if (ret != EOK) { 1357 fibril_mutex_unlock(&oldfile->lock); 1357 1358 ipc_answer_0(rid, ret); 1358 1359 return; … … 1361 1362 ret = vfs_fd_free(newfd); 1362 1363 if (ret != EOK) { 1364 fibril_mutex_unlock(&oldfile->lock); 1363 1365 ipc_answer_0(rid, ret); 1364 1366 return;
Note:
See TracChangeset
for help on using the changeset viewer.