summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/cacheq.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-30 02:08:41 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-30 04:01:19 +0200
commit151133a33c18e9ba103cea77a269b56c6f5cf23a (patch)
tree4a23bccab84af2decd69f95007a175765d4ce771 /libshouldbeinlibc/cacheq.h
parentff9e97b120076b8707474b4580e1bab205f6dd62 (diff)
tmpfs: improve diskfs_node_iterate
Currently, diskfs_node_iterate iterates twice over all nodes. The first time only to determine the number of nodes. Simply count them instead. * tmpfs/node.c (all_nodes_nr_items): New variable. (diskfs_free_node): Decrement all_nodes_nr_items. (diskfs_node_norefs): Likewise. (diskfs_cached_lookup): Increment all_nodes_nr_items. (diskfs_node_iterate): Fix type of sum_nodes, use all_nodes_nr_items.
Diffstat (limited to 'libshouldbeinlibc/cacheq.h')
0 files changed, 0 insertions, 0 deletions