summaryrefslogtreecommitdiff
path: root/libtrivfs/file-utimes.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-30 02:04:31 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-30 02:35:18 +0200
commitff9e97b120076b8707474b4580e1bab205f6dd62 (patch)
tree83a9cca10596211ec05f4870af046b41028e3c31 /libtrivfs/file-utimes.c
parent85f3757d3ce0e9700cd647420e0257b69b91b9e9 (diff)
fatfs: improve diskfs_node_iterate
Currently, diskfs_node_iterate iterates twice over all nodes in the cache. The first time only to determine the number of nodes currently in the cache. Simply count them instead. * fatfs/inode.c (nodehash_nr_items): New variable. (diskfs_cached_lookup): Increment nodehash_nr_items. (diskfs_cached_lookup_in_dirbuf): Likewise. (diskfs_node_norefs): Decrement nodehash_nr_items. (diskfs_node_iterate): Fix the type of num_nodes, use nodehash_nr_items.
Diffstat (limited to 'libtrivfs/file-utimes.c')
0 files changed, 0 insertions, 0 deletions