Changeset c028b22 in mainline for uspace/srv/vfs/vfs_file.c


Ignore:
Timestamp:
2011-07-08T17:01:01Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc1a727
Parents:
4e36219 (diff), 026793d (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_file.c

    r4e36219 rc028b22  
    4545#include "vfs.h"
    4646
    47 #define VFS_DATA        ((vfs_client_data_t *) async_client_data_get())
     47#define VFS_DATA        ((vfs_client_data_t *) async_get_client_data())
    4848#define FILES           (VFS_DATA->files)
    4949
     
    110110static int vfs_file_close_remote(vfs_file_t *file)
    111111{
     112        assert(!file->refcnt);
     113       
     114        async_exch_t *exch = vfs_exchange_grab(file->node->fs_handle);
     115       
    112116        ipc_call_t answer;
    113         aid_t msg;
     117        aid_t msg = async_send_2(exch, VFS_OUT_CLOSE, file->node->devmap_handle,
     118            file->node->index, &answer);
     119       
     120        vfs_exchange_release(exch);
     121       
    114122        sysarg_t rc;
    115         int phone;
    116 
    117         assert(!file->refcnt);
    118 
    119         phone = vfs_grab_phone(file->node->fs_handle);
    120         msg = async_send_2(phone, VFS_OUT_CLOSE, file->node->devmap_handle,
    121             file->node->index, &answer);
    122123        async_wait_for(msg, &rc);
    123         vfs_release_phone(file->node->fs_handle, phone);
    124 
     124       
    125125        return IPC_GET_ARG1(answer);
    126126}
    127 
    128127
    129128/** Increment reference count of VFS file structure.
Note: See TracChangeset for help on using the changeset viewer.