Changeset feeac0d in mainline for uspace/srv/fs/fat
- Timestamp:
- 2013-09-10T16:32:35Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4982d87
- Parents:
- e8d6ce2
- Location:
- uspace/srv/fs/fat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_idx.c
re8d6ce2 rfeeac0d 88 88 static unused_t *unused_find(service_id_t service_id, bool lock) 89 89 { 90 unused_t *u;91 92 90 if (lock) 93 91 fibril_mutex_lock(&unused_lock); 94 92 95 list_foreach(unused_list, l) { 96 u = list_get_instance(l, unused_t, link); 93 list_foreach(unused_list, link, unused_t, u) { 97 94 if (u->service_id == service_id) 98 95 return u; -
uspace/srv/fs/fat/fat_ops.c
re8d6ce2 rfeeac0d 149 149 static int fat_node_fini_by_service_id(service_id_t service_id) 150 150 { 151 fat_node_t *nodep;152 151 int rc; 153 152 … … 160 159 restart: 161 160 fibril_mutex_lock(&ffn_mutex); 162 list_foreach(ffn_list, lnk) { 163 nodep = list_get_instance(lnk, fat_node_t, ffn_link); 161 list_foreach(ffn_list, ffn_link, fat_node_t, nodep) { 164 162 if (!fibril_mutex_trylock(&nodep->lock)) { 165 163 fibril_mutex_unlock(&ffn_mutex);
Note:
See TracChangeset
for help on using the changeset viewer.