Changeset 6ebe721 in mainline for uspace/srv/fs/fat/fat_fat.c
- Timestamp:
- 2009-06-17T22:07:42Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4e1b57d
- Parents:
- 34ca870
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.c
r34ca870 r6ebe721 46 46 #include <align.h> 47 47 #include <assert.h> 48 #include <f utex.h>48 #include <fibril_sync.h> 49 49 #include <mem.h> 50 50 51 51 /** 52 * The fat_alloc_lock futex protects all copies of the File Allocation Table52 * The fat_alloc_lock mutex protects all copies of the File Allocation Table 53 53 * during allocation of clusters. The lock does not have to be held durring 54 54 * deallocation of clusters. 55 55 */ 56 static futex_t fat_alloc_lock = FUTEX_INITIALIZER;56 static FIBRIL_MUTEX_INITIALIZE(fat_alloc_lock); 57 57 58 58 /** Walk the cluster chain. … … 327 327 * Search FAT1 for unused clusters. 328 328 */ 329 f utex_down(&fat_alloc_lock);329 fibril_mutex_lock(&fat_alloc_lock); 330 330 for (b = 0, cl = 0; b < sf; b++) { 331 331 blk = block_get(dev_handle, rscnt + b, BLOCK_FLAGS_NONE); … … 351 351 *lcl = lifo[0]; 352 352 free(lifo); 353 f utex_up(&fat_alloc_lock);353 fibril_mutex_unlock(&fat_alloc_lock); 354 354 return EOK; 355 355 } … … 358 358 block_put(blk); 359 359 } 360 f utex_up(&fat_alloc_lock);360 fibril_mutex_unlock(&fat_alloc_lock); 361 361 362 362 /*
Note:
See TracChangeset
for help on using the changeset viewer.