Changeset 746f623 in mainline for uspace/srv/fs/fat/fat_fat.h


Ignore:
Timestamp:
2010-07-25T22:00:10Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ed6cf34b
Parents:
377cce8
Message:

Turn fat_block_get() into a real function and make it aware of the cached last
cluster number in fat_node_t. This reduces the running time of mkfile —size 5m
by ~58% under Qemu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.h

    r377cce8 r746f623  
    6464    fat_cluster_t *, uint16_t *, uint16_t);
    6565
    66 #define fat_block_get(b, bs, np, bn, flags) \
    67     _fat_block_get((b), (bs), (np)->idx->dev_handle, (np)->firstc, (bn), \
    68     (flags))
    69 
     66extern int fat_block_get(block_t **, struct fat_bs *, struct fat_node *,
     67    aoff64_t, int);
    7068extern int _fat_block_get(block_t **, struct fat_bs *, dev_handle_t,
    7169    fat_cluster_t, aoff64_t, int);
Note: See TracChangeset for help on using the changeset viewer.