Changes in uspace/srv/fs/tmpfs/tmpfs_ops.c [4e00f87:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_ops.c
r4e00f87 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.