diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-30 02:08:41 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-30 04:01:19 +0200 |
commit | 151133a33c18e9ba103cea77a269b56c6f5cf23a (patch) | |
tree | 4a23bccab84af2decd69f95007a175765d4ce771 /utils/shd.c | |
parent | ff9e97b120076b8707474b4580e1bab205f6dd62 (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 'utils/shd.c')
0 files changed, 0 insertions, 0 deletions