Changeset 8b863a62 in mainline for uspace/srv/fs/tmpfs/tmpfs_ops.c


Ignore:
Timestamp:
2014-04-16T17:14:06Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f857e8b
Parents:
dba3e2c (diff), 70b570c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    rdba3e2c r8b863a62  
    259259        tmpfs_node_t *parentp = TMPFS_NODE(pfn);
    260260
    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) {
    264262                if (!str_cmp(dentryp->name, component)) {
    265263                        *rfn = FS_NODE(dentryp->node);
     
    365363
    366364        /* 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))
    370367                        return EEXIST;
    371368        }
     
    400397        if (!parentp)
    401398                return EBUSY;
    402        
    403         list_foreach(parentp->cs_list, lnk) {
    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;
    406403                        childp = dentryp->node;
    407404                        assert(FS_NODE(childp) == cfn);
Note: See TracChangeset for help on using the changeset viewer.