Changeset efedee77 in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2010-11-02T22:38:46Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af894a21
Parents:
aab02fb (diff), e06ef614 (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.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    raab02fb refedee77  
    131131                        if (rc != EOK) {
    132132                                async_wait_for(msg, NULL);
    133                                 vfs_release_phone(phone);
     133                                vfs_release_phone(fs_handle, phone);
    134134                                fibril_rwlock_write_unlock(&namespace_rwlock);
    135135                                ipc_answer_0(rid, rc);
     
    137137                        }
    138138                        async_wait_for(msg, &rc);
    139                         vfs_release_phone(phone);
     139                        vfs_release_phone(fs_handle, phone);
    140140                       
    141141                        if (rc != EOK) {
     
    196196        if (rc != EOK) {
    197197                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);
    200200                /* Mount failed, drop reference to mp_node. */
    201201                if (mp_node)
     
    206206        }
    207207
    208         vfs_release_phone(mountee_phone);
     208        vfs_release_phone(fs_handle, mountee_phone);
    209209       
    210210        /* send the mount options */
     
    212212        if (rc != EOK) {
    213213                async_wait_for(msg, NULL);
    214                 vfs_release_phone(phone);
     214                vfs_release_phone(mp_res.triplet.fs_handle, phone);
    215215                /* Mount failed, drop reference to mp_node. */
    216216                if (mp_node)
     
    221221        }
    222222        async_wait_for(msg, &rc);
    223         vfs_release_phone(phone);
     223        vfs_release_phone(mp_res.triplet.fs_handle, phone);
    224224       
    225225        if (rc == EOK) {
     
    423423                rc = async_req_1_0(phone, VFS_OUT_UNMOUNTED,
    424424                    mr_node->dev_handle);
    425                 vfs_release_phone(phone);
     425                vfs_release_phone(mr_node->fs_handle, phone);
    426426                if (rc != EOK) {
    427427                        fibril_rwlock_write_unlock(&namespace_rwlock);
     
    460460                rc = async_req_2_0(phone, VFS_OUT_UNMOUNT, mp_node->dev_handle,
    461461                    mp_node->index);
    462                 vfs_release_phone(phone);
     462                vfs_release_phone(mp_node->fs_handle, phone);
    463463                if (rc != EOK) {
    464464                        fibril_rwlock_write_unlock(&namespace_rwlock);
     
    716716        async_wait_for(msg, &rc);
    717717       
    718         vfs_release_phone(fs_phone);
     718        vfs_release_phone(file->node->fs_handle, fs_phone);
    719719        fibril_mutex_unlock(&file->lock);
    720720       
     
    747747                async_wait_for(msg, &rc);
    748748               
    749                 vfs_release_phone(fs_phone);
     749                vfs_release_phone(file->node->fs_handle, fs_phone);
    750750                fibril_mutex_unlock(&file->lock);
    751751               
     
    846846        }
    847847       
    848         vfs_release_phone(fs_phone);
     848        vfs_release_phone(file->node->fs_handle, fs_phone);
    849849       
    850850        size_t bytes = IPC_GET_ARG1(answer);
     
    970970        rc = async_req_4_0(fs_phone, VFS_OUT_TRUNCATE, (ipcarg_t) dev_handle,
    971971            (ipcarg_t) index, LOWER32(size), UPPER32(size));
    972         vfs_release_phone(fs_phone);
     972        vfs_release_phone(fs_handle, fs_phone);
    973973        return (int)rc;
    974974}
     
    10261026        ipc_forward_fast(callid, fs_phone, 0, 0, 0, IPC_FF_ROUTE_FROM_ME);
    10271027        async_wait_for(msg, &rc);
    1028         vfs_release_phone(fs_phone);
     1028        vfs_release_phone(file->node->fs_handle, fs_phone);
    10291029
    10301030        fibril_mutex_unlock(&file->lock);
     
    10771077        ipcarg_t rv;
    10781078        async_wait_for(msg, &rv);
    1079         vfs_release_phone(fs_phone);
     1079        vfs_release_phone(node->fs_handle, fs_phone);
    10801080
    10811081        ipc_answer_0(rid, rv);
     
    13551355                int ret = vfs_close_internal(newfile);
    13561356                if (ret != EOK) {
     1357                        fibril_mutex_unlock(&oldfile->lock);
    13571358                        ipc_answer_0(rid, ret);
    13581359                        return;
     
    13611362                ret = vfs_fd_free(newfd);
    13621363                if (ret != EOK) {
     1364                        fibril_mutex_unlock(&oldfile->lock);
    13631365                        ipc_answer_0(rid, ret);
    13641366                        return;
Note: See TracChangeset for help on using the changeset viewer.