diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-29 18:28:22 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-30 02:35:18 +0200 |
commit | 85f3757d3ce0e9700cd647420e0257b69b91b9e9 (patch) | |
tree | b88967f940fd66000e6c158620bc25ddb401590e /nfsd | |
parent | c9fa217a8ed0c167c41800e892c913c1649463a8 (diff) |
ext2fs: 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.
* ext2fs/inode.c (nodehash_nr_items): New variable.
(diskfs_cached_lookup): Increment nodehash_nr_items.
(diskfs_node_norefs): Decrement nodehash_nr_items.
(diskfs_node_iterate): Fix the type of num_nodes, use nodehash_nr_items.
Diffstat (limited to 'nfsd')
0 files changed, 0 insertions, 0 deletions