38,7 → 38,7 |
#include <ipc/ipc.h> |
#include <async.h> |
#include <errno.h> |
#include <futex.h> |
#include <rwlock.h> |
#include <sys/types.h> |
#include <stdlib.h> |
#include "vfs.h" |
93,7 → 93,7 |
* find/create-and-lock the VFS node corresponding to the looked-up |
* triplet. |
*/ |
futex_down(&namespace_futex); |
rwlock_reader_lock(&namespace_rwlock); |
|
/* |
* The path is now populated and we can call vfs_lookup_internal(). |
101,7 → 101,7 |
vfs_triplet_t triplet; |
rc = vfs_lookup_internal(path, size, &triplet, NULL); |
if (rc) { |
futex_up(&namespace_futex); |
rwlock_reader_unlock(&namespace_rwlock); |
ipc_answer_0(rid, rc); |
free(path); |
return; |
113,7 → 113,7 |
free(path); |
|
vfs_node_t *node = vfs_node_get(&triplet); |
futex_up(&namespace_futex); |
rwlock_reader_unlock(&namespace_rwlock); |
|
/* |
* Get ourselves a file descriptor and the corresponding vfs_file_t |