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


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.h

    rc621f4aa r377cce8  
    198198        unsigned                refcnt;
    199199        bool                    dirty;
     200
     201        /*
     202         * Cache of the node's last cluster to avoid some unnecessary FAT walks.
     203         */
     204        bool                    lastc_cached_valid;
     205        fat_cluster_t           lastc_cached_value;
    200206} fat_node_t;
    201207
Note: See TracChangeset for help on using the changeset viewer.