Changeset 973ef9fc in mainline for uspace/srv/vfs/vfs_lookup.c


Ignore:
Timestamp:
2010-12-25T21:20:28Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ee0c
Parents:
1bfd3d3 (diff), 09178b7f (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_lookup.c

    r1bfd3d3 r973ef9fc  
    161161        ipc_call_t answer;
    162162        int phone = vfs_grab_phone(root->fs_handle);
    163         aid_t req = async_send_5(phone, VFS_OUT_LOOKUP, (ipcarg_t) first,
    164             (ipcarg_t) (first + len - 1) % PLB_SIZE,
    165             (ipcarg_t) root->devmap_handle, (ipcarg_t) lflag, (ipcarg_t) index,
     163        aid_t req = async_send_5(phone, VFS_OUT_LOOKUP, (sysarg_t) first,
     164            (sysarg_t) (first + len - 1) % PLB_SIZE,
     165            (sysarg_t) root->devmap_handle, (sysarg_t) lflag, (sysarg_t) index,
    166166            &answer);
    167167       
    168         ipcarg_t rc;
     168        sysarg_t rc;
    169169        async_wait_for(req, &rc);
    170170        vfs_release_phone(root->fs_handle, phone);
     
    179179        fibril_mutex_unlock(&plb_mutex);
    180180       
    181         if (((int) rc < EOK) || (!result))
     181        if ((int) rc < EOK)
    182182                return (int) rc;
     183
     184        if (!result)
     185                return EOK;
    183186       
    184187        result->triplet.fs_handle = (fs_handle_t) rc;
     
    210213        ipc_call_t answer;
    211214        aid_t req = async_send_2(phone, VFS_OUT_OPEN_NODE,
    212             (ipcarg_t) result->triplet.devmap_handle,
    213             (ipcarg_t) result->triplet.index, &answer);
    214        
    215         ipcarg_t rc;
     215            (sysarg_t) result->triplet.devmap_handle,
     216            (sysarg_t) result->triplet.index, &answer);
     217       
     218        sysarg_t rc;
    216219        async_wait_for(req, &rc);
    217220        vfs_release_phone(result->triplet.fs_handle, phone);
Note: See TracChangeset for help on using the changeset viewer.