Re: [PATCH 4/4] tmpfs: improve diskfs_node_iterate

2014-04-30 Thread Samuel Thibault
Justus Winter, le Wed 30 Apr 2014 11:06:02 +0200, a écrit : > Currently, diskfs_node_iterate iterates twice over all nodes. The > first time only to determine the number of nodes. Simply count them > instead. Ack. > * tmpfs/node.c (all_nodes_nr_items): New variable. > (diskfs_free_node): Decrem

[PATCH 4/4] tmpfs: improve diskfs_node_iterate

2014-04-30 Thread Justus Winter
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_looku