Changeset feeac0d in mainline for uspace/srv/fs
- 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
- Files:
-
- 7 edited
-
cdfs/cdfs_ops.c (modified) (2 diffs)
-
exfat/exfat_idx.c (modified) (1 diff)
-
exfat/exfat_ops.c (modified) (2 diffs)
-
ext4fs/ext4fs_ops.c (modified) (1 diff)
-
fat/fat_idx.c (modified) (1 diff)
-
fat/fat_ops.c (modified) (2 diffs)
-
tmpfs/tmpfs_ops.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs_ops.c
re8d6ce2 rfeeac0d 365 365 366 366 /* Check for duplicate entries */ 367 list_foreach(parent->cs_list, link) { 368 cdfs_dentry_t *dentry = 369 list_get_instance(link, cdfs_dentry_t, link); 370 367 list_foreach(parent->cs_list, link, cdfs_dentry_t, dentry) { 371 368 if (str_cmp(dentry->name, name) == 0) 372 369 return EEXIST; … … 524 521 } 525 522 526 list_foreach(parent->cs_list, link) { 527 cdfs_dentry_t *dentry = 528 list_get_instance(link, cdfs_dentry_t, link); 529 523 list_foreach(parent->cs_list, link, cdfs_dentry_t, dentry) { 530 524 if (str_cmp(dentry->name, component) == 0) { 531 525 *fn = get_cached_node(parent->service_id, dentry->index); -
uspace/srv/fs/exfat/exfat_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/exfat/exfat_ops.c
re8d6ce2 rfeeac0d 155 155 static int exfat_node_fini_by_service_id(service_id_t service_id) 156 156 { 157 exfat_node_t *nodep;158 157 int rc; 159 158 … … 166 165 restart: 167 166 fibril_mutex_lock(&ffn_mutex); 168 list_foreach(ffn_list, lnk) { 169 nodep = list_get_instance(lnk, exfat_node_t, ffn_link); 167 list_foreach(ffn_list, ffn_link, exfat_node_t, nodep) { 170 168 if (!fibril_mutex_trylock(&nodep->lock)) { 171 169 fibril_mutex_unlock(&ffn_mutex); -
uspace/srv/fs/ext4fs/ext4fs_ops.c
re8d6ce2 rfeeac0d 194 194 } 195 195 196 list_foreach(instance_list, link) { 197 ext4fs_instance_t *tmp = 198 list_get_instance(link, ext4fs_instance_t, link); 199 196 list_foreach(instance_list, link, ext4fs_instance_t, tmp) { 200 197 if (tmp->service_id == service_id) { 201 198 *inst = tmp; -
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); -
uspace/srv/fs/tmpfs/tmpfs_ops.c
re8d6ce2 rfeeac0d 259 259 tmpfs_node_t *parentp = TMPFS_NODE(pfn); 260 260 261 list_foreach(parentp->cs_list, lnk) { 262 tmpfs_dentry_t *dentryp; 263 dentryp = list_get_instance(lnk, tmpfs_dentry_t, link); 261 list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dentryp) { 264 262 if (!str_cmp(dentryp->name, component)) { 265 263 *rfn = FS_NODE(dentryp->node); … … 365 363 366 364 /* Check for duplicit entries. */ 367 list_foreach(parentp->cs_list, lnk) { 368 dentryp = list_get_instance(lnk, tmpfs_dentry_t, link); 369 if (!str_cmp(dentryp->name, nm)) 365 list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dp) { 366 if (!str_cmp(dp->name, nm)) 370 367 return EEXIST; 371 368 } … … 400 397 if (!parentp) 401 398 return EBUSY; 402 403 list_foreach(parentp->cs_list, l nk) {404 dentryp = list_get_instance(lnk, tmpfs_dentry_t, link);405 if (!str_cmp(dentryp->name, nm)) {399 400 list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dp) { 401 if (!str_cmp(dp->name, nm)) { 402 dentryp = dp; 406 403 childp = dentryp->node; 407 404 assert(FS_NODE(childp) == cfn);
Note:
See TracChangeset
for help on using the changeset viewer.
