Changeset 377cce8 in mainline for uspace/srv/fs/fat/fat_ops.c


Ignore:
Timestamp:
2010-07-25T21:08:47Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
746f623
Parents:
c621f4aa
Message:

Start to cache the FAT node's last cluster in fat_node_t and change
fat_append/chop_clusters() to make use of the cached value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    rc621f4aa r377cce8  
    101101        node->refcnt = 0;
    102102        node->dirty = false;
     103        node->lastc_cached_valid = false;
     104        node->lastc_cached_value = FAT_CLST_LAST1;
    103105}
    104106
     
    691693                return rc;
    692694        }
    693         rc = fat_append_clusters(bs, parentp, mcl);
     695        rc = fat_append_clusters(bs, parentp, mcl, lcl);
    694696        if (rc != EOK) {
    695697                (void) fat_free_clusters(bs, parentp->idx->dev_handle, mcl);
     
    14381440                 * node's cluster chain.
    14391441                 */
    1440                 rc = fat_append_clusters(bs, nodep, mcl);
     1442                rc = fat_append_clusters(bs, nodep, mcl, lcl);
    14411443                if (rc != EOK) {
    14421444                        (void) fat_free_clusters(bs, dev_handle, mcl);
Note: See TracChangeset for help on using the changeset viewer.