Changeset 553492be in mainline for uspace/srv/vfs/vfs_lookup.c
- Timestamp:
- 2009-06-17T22:33:08Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ac47b7c2
- Parents:
- ca093b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_lookup.c
rca093b3 r553492be 43 43 #include <stdarg.h> 44 44 #include <bool.h> 45 #include <f utex.h>45 #include <fibril_sync.h> 46 46 #include <adt/list.h> 47 47 #include <vfs/canonify.h> … … 49 49 #define min(a, b) ((a) < (b) ? (a) : (b)) 50 50 51 futex_t plb_futex = FUTEX_INITIALIZER;51 FIBRIL_MUTEX_INITIALIZE(plb_mutex); 52 52 link_t plb_head; /**< PLB entry ring buffer. */ 53 53 uint8_t *plb = NULL; … … 93 93 } 94 94 95 f utex_down(&plb_futex);95 fibril_mutex_lock(&plb_mutex); 96 96 97 97 plb_entry_t entry; … … 120 120 * The buffer cannot absorb the path. 121 121 */ 122 f utex_up(&plb_futex);122 fibril_mutex_unlock(&plb_mutex); 123 123 return ELIMIT; 124 124 } … … 128 128 * The buffer cannot absorb the path. 129 129 */ 130 f utex_up(&plb_futex);130 fibril_mutex_unlock(&plb_mutex); 131 131 return ELIMIT; 132 132 } … … 147 147 list_append(&entry.plb_link, &plb_head); 148 148 149 f utex_up(&plb_futex);149 fibril_mutex_unlock(&plb_mutex); 150 150 151 151 /* … … 169 169 vfs_release_phone(phone); 170 170 171 f utex_down(&plb_futex);171 fibril_mutex_lock(&plb_mutex); 172 172 list_remove(&entry.plb_link); 173 173 /* … … 176 176 memset(&plb[first], 0, cnt1); 177 177 memset(plb, 0, cnt2); 178 f utex_up(&plb_futex);178 fibril_mutex_unlock(&plb_mutex); 179 179 180 180 if ((rc == EOK) && (result)) {
Note:
See TracChangeset
for help on using the changeset viewer.